Click here to Skip to main content
16,017,881 members
Home / Discussions / C#
   

C#

 
GeneralSelecting row Index of datagrid Pin
Ashishhere18-May-05 3:34
Ashishhere18-May-05 3:34 
GeneralRe: Selecting row Index of datagrid Pin
Marc Clifton18-May-05 4:17
mvaMarc Clifton18-May-05 4:17 
GeneralComboBox - remove focus Pin
NortonC18-May-05 2:05
NortonC18-May-05 2:05 
GeneralRe: ComboBox - remove focus Pin
Marc Clifton18-May-05 2:12
mvaMarc Clifton18-May-05 2:12 
GeneralRe: ComboBox - remove focus Pin
NortonC18-May-05 2:19
NortonC18-May-05 2:19 
GeneralProject Type in VS 2005 Pin
rathishps18-May-05 1:05
rathishps18-May-05 1:05 
GeneralGet High Byte of Int16 Pin
zuschauer198018-May-05 0:32
zuschauer198018-May-05 0:32 
GeneralRe: Get High Byte of Int16 Pin
Marc Clifton18-May-05 1:11
mvaMarc Clifton18-May-05 1:11 
zuschauer1980 wrote:
int highbyte = Int16 & 0x00FF;

No, the high byte is the byte with the higher numeric value, so, it would be:

Int16 & 0xFF00

because FF00 > 00FF

[edit]Oops! That's actually not why it's the high byte. It's the high byte because it's higher in memory! It's probably less confusing if you talk in terms of the MSB and LSB (most significant byte and least significant byte[/edit]

But this just leaves the byte in the high byte position. What you probably want is something more like:

byte b=(byte)((Int16 & 0xFF00) >> 8);

Marc

MyXaml
Advanced Unit Testing
YAPO
GeneralRe: Get High Byte of Int16 Pin
S. Senthil Kumar18-May-05 1:21
S. Senthil Kumar18-May-05 1:21 
GeneralRe: Get High Byte of Int16 Pin
Mike Dimmick18-May-05 1:42
Mike Dimmick18-May-05 1:42 
Generaltwo's complement Pin
zuschauer198018-May-05 1:46
zuschauer198018-May-05 1:46 
GeneralRe: two's complement Pin
Sebastian Schneider18-May-05 3:50
Sebastian Schneider18-May-05 3:50 
GeneralRe: two's complement Pin
zuschauer198018-May-05 22:49
zuschauer198018-May-05 22:49 
GeneralCheckedListBoxes Pin
17-May-05 23:19
suss17-May-05 23:19 
GeneralRe: CheckedListBoxes Pin
Robert Rohde18-May-05 0:34
Robert Rohde18-May-05 0:34 
Generaldeleting particular node element from xml file Pin
ksanju100017-May-05 23:11
ksanju100017-May-05 23:11 
GeneralRe: deleting particular node element from xml file Pin
Gavin Jeffrey18-May-05 0:58
Gavin Jeffrey18-May-05 0:58 
Generalserializing an array of strings Pin
Green Fuze17-May-05 22:33
Green Fuze17-May-05 22:33 
GeneralRe: serializing an array of strings Pin
Christian Graus17-May-05 22:48
protectorChristian Graus17-May-05 22:48 
GeneralRe: serializing an array of strings Pin
Green Fuze17-May-05 23:14
Green Fuze17-May-05 23:14 
GeneralRe: serializing an array of strings Pin
jinzhecheng18-May-05 7:23
jinzhecheng18-May-05 7:23 
GeneralRe: serializing an array of strings Pin
Green Fuze19-May-05 3:15
Green Fuze19-May-05 3:15 
GeneralRe: serializing an array of strings Pin
jinzhecheng20-May-05 3:11
jinzhecheng20-May-05 3:11 
GeneralRe: serializing an array of strings Pin
Green Fuze20-May-05 6:01
Green Fuze20-May-05 6:01 
Generalcall a java class Pin
Mohammad Daba'an17-May-05 22:00
Mohammad Daba'an17-May-05 22:00 

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.