Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
QuestionHow to put 2 copies of same dataset on a form Pin
MarkB1238-Aug-13 23:11
MarkB1238-Aug-13 23:11 
AnswerRe: How to put 2 copies of same dataset on a form Pin
V.9-Aug-13 0:30
professionalV.9-Aug-13 0:30 
QuestionHow to get xml node with a specified value ? Pin
taibc8-Aug-13 22:00
taibc8-Aug-13 22:00 
AnswerRe: How to get xml node with a specified value ? Pin
vonb8-Aug-13 22:39
vonb8-Aug-13 22:39 
Questiondisplay the graphical wave in C# Pin
johnsamuel268-Aug-13 21:14
johnsamuel268-Aug-13 21:14 
AnswerRe: display the graphical wave in C# Pin
Richard MacCutchan8-Aug-13 21:41
mveRichard MacCutchan8-Aug-13 21:41 
AnswerRe: display the graphical wave in C# Pin
V.8-Aug-13 21:44
professionalV.8-Aug-13 21:44 
QuestionConverting Byte array into integer? Pin
Kiran Satish8-Aug-13 9:11
Kiran Satish8-Aug-13 9:11 
Hello all,

Looks like this is a basic question that I somehow is not able to figure it out properly. The method I am using works for Hex numbers that does not contain 0 in its lower byte.

I guess I have to use a different approach to get around this problem, which I am not able to quite figure it out.

I am reading values off of an IC which pushes out serial data in bits and the total length of the output is always 16bits which are read into two bytes. So, when the value is 255 its fine when I convert it into integer. But when the output from the chip is equivalent to 256, it turns out to be '1' in Upper byte and '0' in lower byte which is not being converted to 256 but rather to 16 using the following code.

C#
string hexValue = In[0].ToString("X") + In[1].ToString("X");
int hscandacvalue = int.Parse(hexValue, System.Globalization.NumberStyles.HexNumber);


Any suggestions?

thanks
PKNT

AnswerRe: Converting Byte array into integer? Pin
harold aptroot8-Aug-13 11:10
harold aptroot8-Aug-13 11:10 
GeneralRe: Converting Byte array into integer? Pin
Kiran Satish8-Aug-13 11:55
Kiran Satish8-Aug-13 11:55 
QuestionHow to create a lan based Window application backend sql? Pin
Alok Sharma ji8-Aug-13 6:14
Alok Sharma ji8-Aug-13 6:14 
AnswerRe: How to create a lan based Window application backend sql? Pin
Ron Nicholson8-Aug-13 6:50
professionalRon Nicholson8-Aug-13 6:50 
AnswerRe: How to create a lan based Window application backend sql? Pin
Richard MacCutchan8-Aug-13 6:52
mveRichard MacCutchan8-Aug-13 6:52 
GeneralRe: How to create a lan based Window application backend sql? Pin
Alok Sharma ji11-Aug-13 7:02
Alok Sharma ji11-Aug-13 7:02 
GeneralRe: How to create a lan based Window application backend sql? Pin
Richard MacCutchan11-Aug-13 7:21
mveRichard MacCutchan11-Aug-13 7:21 
GeneralRe: How to create a lan based Window application backend sql? Pin
Alok Sharma ji12-Aug-13 5:38
Alok Sharma ji12-Aug-13 5:38 
GeneralRe: How to create a lan based Window application backend sql? Pin
Richard MacCutchan12-Aug-13 6:05
mveRichard MacCutchan12-Aug-13 6:05 
AnswerRe: How to create a lan based Window application backend sql? Pin
Manfred Rudolf Bihy8-Aug-13 8:22
professionalManfred Rudolf Bihy8-Aug-13 8:22 
GeneralRe: How to create a lan based Window application backend sql? Pin
Mycroft Holmes8-Aug-13 14:01
professionalMycroft Holmes8-Aug-13 14:01 
GeneralRe: How to create a lan based Window application backend sql? Pin
jschell10-Aug-13 11:22
jschell10-Aug-13 11:22 
GeneralRe: How to create a lan based Window application backend sql? Pin
Mycroft Holmes10-Aug-13 12:56
professionalMycroft Holmes10-Aug-13 12:56 
GeneralRe: How to create a lan based Window application backend sql? Pin
Alok Sharma ji12-Aug-13 5:35
Alok Sharma ji12-Aug-13 5:35 
AnswerRe: How to create a lan based Window application backend sql? Pin
Eddy Vluggen8-Aug-13 9:01
professionalEddy Vluggen8-Aug-13 9:01 
GeneralRe: How to create a lan based Window application backend sql? Pin
Alok Sharma ji11-Aug-13 7:00
Alok Sharma ji11-Aug-13 7:00 
AnswerRe: How to create a lan based Window application backend sql? Pin
jschell10-Aug-13 11:19
jschell10-Aug-13 11:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.