Click here to Skip to main content
15,914,895 members
Home / Discussions / C#
   

C#

 
Questionjfo's Splitbutton... Pin
Faredegyn10-Jul-07 8:12
Faredegyn10-Jul-07 8:12 
Well, it's an updated version that was done and can be found at http://wyday.com/blog/2007/csharp-splitbutton/

anyways, I have it implemented just fine, but I am having difficulty constructing an event handler to deal with the selection that the user makes.

The code works by constructing a a contextMenuStrip, then adds Items to it. I am wondering how do I set up an event handler that takes the chosen item and when the button is clicked, does a particular action. If I can at least get a hint to what I need to implement to set it up, that would be great.

If you need more code, just ask.

Thank you,

Fare
QuestionRe: jfo's Splitbutton... Pin
Faredegyn11-Jul-07 3:24
Faredegyn11-Jul-07 3:24 
QuestionC# Having the Font resize accordingly with the label and the form it is in. Pin
Minosknight10-Jul-07 7:12
Minosknight10-Jul-07 7:12 
AnswerRe: C# Having the Font resize accordingly with the label and the form it is in. Pin
Christian Graus10-Jul-07 7:15
protectorChristian Graus10-Jul-07 7:15 
GeneralRe: C# Having the Font resize accordingly with the label and the form it is in. Pin
Minosknight10-Jul-07 7:18
Minosknight10-Jul-07 7:18 
GeneralRe: C# Having the Font resize accordingly with the label and the form it is in. Pin
Christian Graus10-Jul-07 7:32
protectorChristian Graus10-Jul-07 7:32 
QuestionHow to trap unhandled exceptions Pin
Glenn E. Lanier II10-Jul-07 6:45
Glenn E. Lanier II10-Jul-07 6:45 
AnswerRe: How to trap unhandled exceptions Pin
Christian Graus10-Jul-07 6:59
protectorChristian Graus10-Jul-07 6:59 
GeneralRe: How to trap unhandled exceptions Pin
Glenn E. Lanier II10-Jul-07 7:57
Glenn E. Lanier II10-Jul-07 7:57 
GeneralRe: How to trap unhandled exceptions Pin
Christian Graus10-Jul-07 8:11
protectorChristian Graus10-Jul-07 8:11 
GeneralRe: How to trap unhandled exceptions Pin
Glenn E. Lanier II10-Jul-07 10:14
Glenn E. Lanier II10-Jul-07 10:14 
AnswerRe: How to trap unhandled exceptions Pin
Daniel Grunwald10-Jul-07 8:17
Daniel Grunwald10-Jul-07 8:17 
GeneralRe: How to trap unhandled exceptions Pin
Glenn E. Lanier II10-Jul-07 10:16
Glenn E. Lanier II10-Jul-07 10:16 
QuestionDataGridView Pin
mehrdadc4810-Jul-07 6:45
mehrdadc4810-Jul-07 6:45 
AnswerRe: DataGridView Pin
rahvyn610-Jul-07 9:40
rahvyn610-Jul-07 9:40 
QuestionNewbie: Calling an overriden method from a child class... Pin
Phillip Hodges10-Jul-07 5:17
Phillip Hodges10-Jul-07 5:17 
AnswerRe: Newbie: Calling an overriden method from a child class... Pin
Colin Angus Mackay10-Jul-07 5:19
Colin Angus Mackay10-Jul-07 5:19 
GeneralRe: Newbie: Calling an overriden method from a child class... Pin
Phillip Hodges10-Jul-07 5:32
Phillip Hodges10-Jul-07 5:32 
AnswerRe: Newbie: Calling an overriden method from a child class... Pin
J4amieC10-Jul-07 5:32
J4amieC10-Jul-07 5:32 
QuestionCheckAll/Uncheck all Pin
kibromg10-Jul-07 4:56
kibromg10-Jul-07 4:56 
AnswerRe: CheckAll/Uncheck all Pin
Christian Graus10-Jul-07 4:57
protectorChristian Graus10-Jul-07 4:57 
GeneralRe: CheckAll/Uncheck all Pin
kibromg10-Jul-07 5:19
kibromg10-Jul-07 5:19 
GeneralRe: CheckAll/Uncheck all Pin
Christian Graus10-Jul-07 5:26
protectorChristian Graus10-Jul-07 5:26 
GeneralRe: CheckAll/Uncheck all Pin
kibromg10-Jul-07 5:35
kibromg10-Jul-07 5:35 
Question[Message Deleted] Pin
DarknessDRK10-Jul-07 4:40
DarknessDRK10-Jul-07 4:40 

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.