Type: Posts; User: Nikel
Search took 0.01 seconds.
Hi, I'm having a problem with windows and a third party device library. We develop software that uses third party hardware, written for .Net 4.0+ in C# for both 32/64 bit platforms according to...
June 12th, 2015, 08:40 AM
No, DataReceived Event will be fired when (every time) the PC-side serial interface receives data. The PC (your C# program) sends data to the Board, the board then replies to the PC, that's when...
June 11th, 2015, 10:40 AM
Tell that to TeamViewer lol... True nevertheless, so I'll change my default to a port number >49152. That still won't contain a socket collition though.
June 11th, 2015, 09:19 AM
DataReceived event will be fired when the serial interface gets any data into its buffer. Your code seems fine, but you might be missing the Baudrate setup? Your board might not be understanding what...
June 11th, 2015, 09:00 AM
Victor, the TCP/UDP port list is where I got the 1024-65535 port range that should be used for user applications. That's why I decided to use port 3000. There is no specification on which one should...
June 10th, 2015, 02:15 PM
Hello everyone, thanks for reading!
I have a little question about TCP sockets and how to define which port will be used for the connection. So far I just defined port 3000 as a default port and...
October 22nd, 2014, 09:31 AM
Hi, I've come accross an unlucky scenario where I can only use the 64 bit version of one DLL (on a 64 bit Win 7) but don't have the 64 bit version of another DLL I also need to use, so I can't...
April 9th, 2014, 02:39 PM
Hi, I'm using a DGV to show a lot of Database entries and I would like to allow the user to select multiple rows and then perform actions on those rows. The problem is, since the DGVs multiselect...
March 28th, 2014, 08:51 AM
You are grouping wrong. Multiplication and division precede addition and substraction.
result = (Math.Pow(numx, 2) + Math.Pow(numz, 2)) / (1 - (Math.Pow(numx, 2) - Math.Pow(numz, 2)) / 2);When...
March 27th, 2014, 07:12 PM
Point taken. I agree, nevertheless it does seem like a strange behaviour, having IDENT_CURRENT return the same value twice.
If an insert error occurs the procedure will return with error and I...
March 27th, 2014, 04:25 PM
Hi, I'm having some weird behaviour with SQL. I have a method to check what the next ID will be (no multithreading or any chance of collisions there) but the problem is I'm getting the same ID twice...
March 26th, 2014, 09:24 AM
The simplest way would be to open your form designer, and double click on the button that should perform what you need. That should take you to the button click event handler automatically.
March 25th, 2014, 12:50 PM
Hi, I'm having problems with localization. My problem is, if I add a "strings.en.resx" file (the nested designer.cs file is not created when a .xx. language identifier is present) and if I try to...
Hello again, once more I'm having an old problem with referencing libraries. From my VS2010 project window, I add a reference to a .dll file, either selecting the file itself or from the COM tab...
August 3rd, 2012, 10:43 AM
Ok, this is how my PrePaint event resulted. It will calculate the position of the InnerPlotPosition considering the ChartArea's position and the Chart size. I had to change to calculation of the...
August 2nd, 2012, 03:18 PM
Yes, there's the <measuringPoint> class that has the ChartArea, Legend and Series, and then the GUI that has the Chart. Since (so far) all I did was update the .Points data in the Series, I had no...
August 2nd, 2012, 02:01 PM
Hi zips, the null assignment throws a nullReferenceException, already tried. The value for "no image" is just an empty string.
Thulhu, thank you for the info. The chart I'm using is from the...
August 2nd, 2012, 11:18 AM
Hello again! I'm having a little problem with a .BackImage property file I want to modify at run time, but can't manage to "release" the file to be able to change what I need. This is what I want to...
July 27th, 2012, 10:46 AM
Hi, I have MSDE 2000 running on client PCs with a database in "C:\Program Files\Microsoft SQL Server\MSSQL\Data\" folder. I've made some changes to some of the tables and would need to replace the...
July 26th, 2012, 03:12 PM
The tasks would naturally be added to those Lists<> by the Type1 clients. And you'd have to save the case when no tasks were pending and a type2 client comes available... store it somewhere else to...
July 26th, 2012, 03:03 PM
I would create a List<classTask> for every task priority (if you know how many you will have) and have the TCP Listener fire an event when a type2 client is available. Then, when one is, take care of...
July 18th, 2012, 12:33 PM
It took me a while to get this working, and a lot of Excel's capabilities are not implemented, but this should help you with the exporting at least.
The classes in the Excel environment don't...
July 13th, 2012, 02:56 PM
If... I understood correctly and didn't miss something.
Let's say a unit will take the same amount of all 4 resources (R)
3 resources -> 1 hour
R resources -> T Time
T = R *...
July 11th, 2012, 07:34 AM
Yes, you are right, it would be rounding wrong. And if you search for a Round method, you get an even better solution.
// double Math.Round(double value, int digits)
double value =...
July 10th, 2012, 06:54 AM
float temp = aData * 100;
temp = (int)temp;
temp /= 100;
aData = temp;
I'm more curious about the new float. Isn't that giving you any errors? You're initializing...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!