Click here to Skip to main content
15,891,688 members
Home / Discussions / C#
   

C#

 
QuestionDeclaring 'Lists' Pin
nlowdon20-Nov-08 6:43
nlowdon20-Nov-08 6:43 
AnswerRe: Declaring 'Lists' Pin
humayunlalzad20-Nov-08 7:02
humayunlalzad20-Nov-08 7:02 
AnswerRe: Declaring 'Lists' Pin
Wendelius20-Nov-08 7:11
mentorWendelius20-Nov-08 7:11 
GeneralRe: Declaring 'Lists' Pin
Ennis Ray Lynch, Jr.20-Nov-08 7:48
Ennis Ray Lynch, Jr.20-Nov-08 7:48 
GeneralRe: Declaring 'Lists' Pin
Wendelius20-Nov-08 8:04
mentorWendelius20-Nov-08 8:04 
QuestionBitwise operator Pin
humayunlalzad20-Nov-08 6:38
humayunlalzad20-Nov-08 6:38 
AnswerRe: Bitwise operator Pin
led mike20-Nov-08 7:13
led mike20-Nov-08 7:13 
AnswerRe: Bitwise operator Pin
Gideon Engelberth20-Nov-08 9:50
Gideon Engelberth20-Nov-08 9:50 
They don't actually work the same. If that event was raised with both right and left mouse buttons pressed (eg: e.Button = (MouseButtons.Right | MouseButtons.Left)) then the two snippets would be different. The difference is that the first one checks to see if a particular bit in a value is set and the second checks to see if the value is exactly equal to some other value.

I assume that when you switch & with && you got a compiler error. The single operators & and | are used to perform bitwise operations. The double operators && and || are used to perform operations on boolean values.
GeneralRe: Bitwise operator Pin
Luc Pattyn20-Nov-08 13:47
sitebuilderLuc Pattyn20-Nov-08 13:47 
GeneralRe: Bitwise operator Pin
humayunlalzad21-Nov-08 5:50
humayunlalzad21-Nov-08 5:50 
GeneralRe: Bitwise operator Pin
Luc Pattyn21-Nov-08 5:54
sitebuilderLuc Pattyn21-Nov-08 5:54 
GeneralRe: Bitwise operator Pin
humayunlalzad21-Nov-08 6:44
humayunlalzad21-Nov-08 6:44 
GeneralRe: Bitwise operator Pin
Luc Pattyn21-Nov-08 8:17
sitebuilderLuc Pattyn21-Nov-08 8:17 
QuestionRotating Label Control [modified] Pin
#realJSOP20-Nov-08 6:16
mve#realJSOP20-Nov-08 6:16 
AnswerRe: Rotating Label Control Pin
Jim Crafton20-Nov-08 8:40
Jim Crafton20-Nov-08 8:40 
GeneralRe: Rotating Label Control Pin
#realJSOP20-Nov-08 8:54
mve#realJSOP20-Nov-08 8:54 
GeneralRe: Rotating Label Control Pin
#realJSOP20-Nov-08 9:47
mve#realJSOP20-Nov-08 9:47 
GeneralRe: Rotating Label Control Pin
Jim Crafton20-Nov-08 9:49
Jim Crafton20-Nov-08 9:49 
GeneralRe: Rotating Label Control Pin
Jim Crafton20-Nov-08 9:51
Jim Crafton20-Nov-08 9:51 
QuestionAlways on top for a C# form Pin
EliottA20-Nov-08 6:14
EliottA20-Nov-08 6:14 
AnswerRe: Always on top for a C# form Pin
Giorgi Dalakishvili20-Nov-08 6:21
mentorGiorgi Dalakishvili20-Nov-08 6:21 
GeneralRe: Always on top for a C# form Pin
EliottA20-Nov-08 6:24
EliottA20-Nov-08 6:24 
QuestionIgnoring mouse input after initial click on a button. Pin
doug michalsky20-Nov-08 5:30
doug michalsky20-Nov-08 5:30 
AnswerRe: Ignoring mouse input after initial click on a button. Pin
DaveyM6921-Nov-08 1:09
professionalDaveyM6921-Nov-08 1:09 
GeneralRe: Ignoring mouse input after initial click on a button. Pin
doug michalsky21-Nov-08 13:18
doug michalsky21-Nov-08 13:18 

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.