Click here to Skip to main content
15,917,731 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting server name Pin
Saiyed Alam10-May-08 17:44
Saiyed Alam10-May-08 17:44 
GeneralRe: Getting server name Pin
Dave Kreskowiak11-May-08 17:46
mveDave Kreskowiak11-May-08 17:46 
GeneralRe: Getting server name Pin
Saiyed Alam11-May-08 19:52
Saiyed Alam11-May-08 19:52 
QuestionUsing .dll files Pin
Saiyed Alam10-May-08 7:51
Saiyed Alam10-May-08 7:51 
AnswerRe: Using .dll files Pin
Gareth H10-May-08 7:58
Gareth H10-May-08 7:58 
GeneralRe: Using .dll files Pin
Saiyed Alam10-May-08 8:08
Saiyed Alam10-May-08 8:08 
QuestionEnums in C# Pin
OsoreWatashi10-May-08 6:45
OsoreWatashi10-May-08 6:45 
AnswerRe: Enums in C# Pin
Anthony Mushrow10-May-08 6:58
professionalAnthony Mushrow10-May-08 6:58 
Well, in binary 0x0100 is: 0000000100000000
and 0x0104 is: 0000000100000100
and 0x0101 is: 0000000100000001

Each bit will probably represent something, the middle bit may mean that the key has been pressed, the first may mean it has been released, and the 3rd might mean that its a special key like Alt or Fn

I'm not sure what you want to do but if you use the enum:

enum Type : int
{
  Pressed = 0x0100,
  SpecialKey = 0x0004,
  Released = 0x0001
}


Then you can AND the values in your enum, with the value that you have, so that you can see what information it contains.
So this statement would return true if the key was being released:

if((myValue & Type.Released) == Type.Released)

My current favourite word is: Bacon!
-SK Genius


GeneralRe: Enums in C# Pin
OsoreWatashi10-May-08 7:07
OsoreWatashi10-May-08 7:07 
GeneralRe: Enums in C# Pin
Anthony Mushrow10-May-08 7:33
professionalAnthony Mushrow10-May-08 7:33 
GeneralRe: Enums in C# Pin
OsoreWatashi10-May-08 8:25
OsoreWatashi10-May-08 8:25 
GeneralRe: Enums in C# Pin
Anthony Mushrow10-May-08 8:43
professionalAnthony Mushrow10-May-08 8:43 
AnswerRe: Enums in C# Pin
Ennis Ray Lynch, Jr.10-May-08 17:37
Ennis Ray Lynch, Jr.10-May-08 17:37 
Questionservers available in the network Pin
Member 400849210-May-08 4:38
Member 400849210-May-08 4:38 
AnswerRe: servers available in the network Pin
Dave Kreskowiak10-May-08 6:30
mveDave Kreskowiak10-May-08 6:30 
QuestionUnderstanding reflection.. Pin
som.nitk10-May-08 3:33
som.nitk10-May-08 3:33 
AnswerRe: Understanding reflection.. Pin
Roger Alsing10-May-08 3:57
Roger Alsing10-May-08 3:57 
QuestionEncryption and decryption using Certificate store across machines Pin
talisker7710-May-08 3:16
talisker7710-May-08 3:16 
AnswerRe: Encryption and decryption using Certificate store across machines Pin
Ennis Ray Lynch, Jr.10-May-08 17:39
Ennis Ray Lynch, Jr.10-May-08 17:39 
Questionpie chart in c# Pin
Pankaj Garg10-May-08 0:12
Pankaj Garg10-May-08 0:12 
AnswerRe: pie chart in c# Pin
Dave Sexton10-May-08 0:32
Dave Sexton10-May-08 0:32 
QuestionRe: pie chart in c# Pin
Pankaj Garg10-May-08 0:41
Pankaj Garg10-May-08 0:41 
AnswerRe: pie chart in c# Pin
Abhijit Jana10-May-08 1:04
professionalAbhijit Jana10-May-08 1:04 
GeneralRe: pie chart in c# Pin
Pankaj Garg10-May-08 1:19
Pankaj Garg10-May-08 1:19 
GeneralRe: pie chart in c# Pin
Abhijit Jana10-May-08 1:30
professionalAbhijit Jana10-May-08 1:30 

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.