Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
QuestionGet containing class? Pin
Lord Kixdemp26-Nov-06 16:01
Lord Kixdemp26-Nov-06 16:01 
AnswerRe: Get containing class? Pin
Judah Gabriel Himango26-Nov-06 16:27
sponsorJudah Gabriel Himango26-Nov-06 16:27 
GeneralRe: Get containing class? Pin
Lord Kixdemp27-Nov-06 8:05
Lord Kixdemp27-Nov-06 8:05 
GeneralRe: Get containing class? Pin
Lord Kixdemp27-Nov-06 11:03
Lord Kixdemp27-Nov-06 11:03 
Questionhow to open a folder and get its handle? Pin
Shirley, Wang26-Nov-06 15:40
Shirley, Wang26-Nov-06 15:40 
QuestionSpliting short to 2 bytes Pin
Dwayner7926-Nov-06 14:47
Dwayner7926-Nov-06 14:47 
AnswerRe: Spliting short to 2 bytes Pin
Dwayner7926-Nov-06 14:55
Dwayner7926-Nov-06 14:55 
AnswerRe: Spliting short to 2 bytes Pin
bankai12326-Nov-06 17:56
bankai12326-Nov-06 17:56 
A alternative is to use bit shifting.

To get the MSB you could shift the bits right by 15.

eg msb = short >> 15;

To get the LSB you can always use a bit mask, by using the bitwise AND operator on the short.

eg. lsb = short & 0x0001;
QuestionRegular Expressions+E-mail... Pin
ksor26-Nov-06 8:39
ksor26-Nov-06 8:39 
AnswerRe: Regular Expressions+E-mail... Pin
Christian Graus26-Nov-06 11:35
protectorChristian Graus26-Nov-06 11:35 
QuestionHow to fill DataGridView with Two Dimensional Array? [modified] Pin
mohamedyahyaelzayat26-Nov-06 6:53
mohamedyahyaelzayat26-Nov-06 6:53 
AnswerRe: How to fill DataGridView with Two Dimensional Array? Pin
Nader Elshehabi26-Nov-06 13:27
Nader Elshehabi26-Nov-06 13:27 
QuestionFormatting Console Output Pin
jgallen2326-Nov-06 6:24
jgallen2326-Nov-06 6:24 
AnswerRe: Formatting Console Output Pin
Guffa26-Nov-06 9:03
Guffa26-Nov-06 9:03 
Questionencoding Pin
yamamah26-Nov-06 5:41
yamamah26-Nov-06 5:41 
AnswerRe: encoding Pin
Not Active26-Nov-06 6:16
mentorNot Active26-Nov-06 6:16 
AnswerRe: encoding Pin
CPallini26-Nov-06 6:33
mveCPallini26-Nov-06 6:33 
QuestionVS - change file name - HELP! Pin
seq-26-Nov-06 5:25
seq-26-Nov-06 5:25 
AnswerRe: VS - change file name - HELP! Pin
Christian Graus26-Nov-06 11:31
protectorChristian Graus26-Nov-06 11:31 
GeneralRe: VS - change file name - HELP! Pin
seq-26-Nov-06 11:58
seq-26-Nov-06 11:58 
QuestionFire event when adding new object to list or collection Pin
Davids_Maguire26-Nov-06 4:45
Davids_Maguire26-Nov-06 4:45 
AnswerRe: Fire event when adding new object to list or collection Pin
Martin#26-Nov-06 9:54
Martin#26-Nov-06 9:54 
GeneralRe: Fire event when adding new object to list or collection Pin
Davids_Maguire26-Nov-06 10:35
Davids_Maguire26-Nov-06 10:35 
Questionhow to re-draw controls on a Form at a regular interval? Pin
George_George26-Nov-06 3:36
George_George26-Nov-06 3:36 
Questionencoding Pin
yamamah26-Nov-06 3:09
yamamah26-Nov-06 3:09 

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.