Click here to Skip to main content
16,004,969 members
Home / Discussions / C#
   

C#

 
AnswerRe: Serious fault in overloading operator== in C# Pin
Daniel Grunwald10-Jan-06 9:38
Daniel Grunwald10-Jan-06 9:38 
GeneralRe: Serious fault in overloading operator== in C# Pin
Jesper196610-Jan-06 9:44
Jesper196610-Jan-06 9:44 
GeneralRe: Serious fault in overloading operator== in C# Pin
Daniel Grunwald11-Jan-06 3:28
Daniel Grunwald11-Jan-06 3:28 
AnswerRe: Serious fault in overloading operator== in C# Pin
leppie10-Jan-06 18:59
leppie10-Jan-06 18:59 
QuestionCreating mailbox from web service Pin
VPR10-Jan-06 8:27
VPR10-Jan-06 8:27 
AnswerRe: Creating mailbox from web service Pin
Curtis Schlak.10-Jan-06 9:08
Curtis Schlak.10-Jan-06 9:08 
QuestionShowing check mark in menu item Pin
smurfy3410-Jan-06 8:16
smurfy3410-Jan-06 8:16 
AnswerRe: Showing check mark in menu item Pin
Curtis Schlak.10-Jan-06 8:41
Curtis Schlak.10-Jan-06 8:41 
Well, first you need to set the MenuItem's Checked property to the appropriate Boolean value.

From here, you have a couple of choices.

1) If the user can only change the state of the application through clicking that MenuItem, then hook up an event handler to the Click event of the MenuItem (which I'm sure you already have) and set the MenuItem's Checked property equal to the Boolean inverse of its current value. For example: menuItem1.Checked = !menuItem1.Checked;.

2) If the state of the application can change without the use of the MenuItem, then hook up an event handler to the MenuItem's parent MenuItem's Popup event. In that event handler, have something like targetMenuItem.Checked = ShouldICheckThisMenuItem(); where ShouldICheckThisMenuItem() is some method that returns a Boolean value determining if the MenuItem should get checked.

Hope that helps.

"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
Questionlabel color in form Pin
zhujp9810-Jan-06 8:09
zhujp9810-Jan-06 8:09 
AnswerRe: label color in form Pin
Curtis Schlak.10-Jan-06 8:34
Curtis Schlak.10-Jan-06 8:34 
GeneralRe: label color in form Pin
shabonaa10-Jan-06 9:48
shabonaa10-Jan-06 9:48 
QuestionReadonly property on PropertyGrid Pin
Luis Barreira10-Jan-06 8:06
Luis Barreira10-Jan-06 8:06 
AnswerRe: Readonly property on PropertyGrid Pin
leppie10-Jan-06 19:08
leppie10-Jan-06 19:08 
GeneralRe: Readonly property on PropertyGrid Pin
Luis Barreira10-Jan-06 23:34
Luis Barreira10-Jan-06 23:34 
GeneralRe: Readonly property on PropertyGrid Pin
leppie10-Jan-06 23:42
leppie10-Jan-06 23:42 
QuestionLose db connection after setup???? Pin
Small Rat10-Jan-06 7:17
Small Rat10-Jan-06 7:17 
AnswerRe: Lose db connection after setup???? Pin
Guffa10-Jan-06 7:31
Guffa10-Jan-06 7:31 
GeneralRe: Lose db connection after setup???? Pin
Small Rat10-Jan-06 7:38
Small Rat10-Jan-06 7:38 
GeneralRe: Lose db connection after setup???? Pin
Dave Kreskowiak10-Jan-06 9:10
mveDave Kreskowiak10-Jan-06 9:10 
AnswerRe: Lose db connection after setup???? Pin
Guffa10-Jan-06 20:59
Guffa10-Jan-06 20:59 
GeneralRe: Lose db connection after setup???? Pin
Small Rat11-Jan-06 16:46
Small Rat11-Jan-06 16:46 
QuestionCom+ NetBios problem Pin
webhay10-Jan-06 6:52
webhay10-Jan-06 6:52 
QuestionProblem connection string Sybase C# Pin
coloso10-Jan-06 6:47
coloso10-Jan-06 6:47 
AnswerRe: Problem connection string Sybase C# Pin
Guffa10-Jan-06 6:54
Guffa10-Jan-06 6:54 
QuestionSee webcam from another PC Pin
Daniel Santillanes10-Jan-06 5:11
professionalDaniel Santillanes10-Jan-06 5:11 

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.