Click here to Skip to main content
16,003,611 members
Home / Discussions / C#
   

C#

 
GeneralRe: button event handler where it drops it? Pin
geomeo12330-Aug-24 16:31
geomeo12330-Aug-24 16:31 
AnswerRe: button event handler where it drops it? Pin
Richard MacCutchan26-Aug-24 22:12
mveRichard MacCutchan26-Aug-24 22:12 
GeneralRe: button event handler where it drops it? Pin
geomeo12327-Aug-24 10:49
geomeo12327-Aug-24 10:49 
GeneralRe: button event handler where it drops it? Pin
Richard MacCutchan27-Aug-24 21:31
mveRichard MacCutchan27-Aug-24 21:31 
GeneralRe: button event handler where it drops it? Pin
geomeo12330-Aug-24 16:41
geomeo12330-Aug-24 16:41 
AnswerRe: button event handler where it drops it? Pin
Ravi Bhavnani4-Sep-24 12:23
professionalRavi Bhavnani4-Sep-24 12:23 
QuestionC# Enable or disable menu in a form frm another form Pin
Ismael_199924-Aug-24 4:36
Ismael_199924-Aug-24 4:36 
AnswerRe: C# Enable or disable menu in a form frm another form Pin
Richard Andrew x6424-Aug-24 5:34
professionalRichard Andrew x6424-Aug-24 5:34 
You could derive a class from the ToolStripMenuItem and override the method ToolStripDropDownItem.OnDropDownOpened(EventArgs) Method (System.Windows.Forms) | Microsoft Learn[^]

Then in your OnDropDownOpened handler, you can scan the Application.OpenForms collection to see if the form exists. If it exists, then you disable the menu item.
The difficult we do right away...
...the impossible takes slightly longer.

GeneralRe: C# Enable or disable menu in a form frm another form Pin
Ismael_199926-Aug-24 4:40
Ismael_199926-Aug-24 4:40 
AnswerRe: C# Enable or disable menu in a form frm another form Pin
OriginalGriff24-Aug-24 18:18
mveOriginalGriff24-Aug-24 18:18 
GeneralRe: C# Enable or disable menu in a form frm another form Pin
Ismael_199926-Aug-24 4:42
Ismael_199926-Aug-24 4:42 
QuestionSystem.* not defined or imported Pin
Pieter Claassens15-Aug-24 4:22
Pieter Claassens15-Aug-24 4:22 
AnswerRe: System.* not defined or imported Pin
Richard MacCutchan15-Aug-24 4:56
mveRichard MacCutchan15-Aug-24 4:56 
GeneralRe: System.* not defined or imported Pin
Pieter Claassens15-Aug-24 5:03
Pieter Claassens15-Aug-24 5:03 
GeneralRe: System.* not defined or imported Pin
Richard MacCutchan15-Aug-24 5:26
mveRichard MacCutchan15-Aug-24 5:26 
GeneralRe: System.* not defined or imported Pin
Richard Andrew x6415-Aug-24 11:21
professionalRichard Andrew x6415-Aug-24 11:21 
GeneralRe: System.* not defined or imported Pin
Richard MacCutchan15-Aug-24 22:13
mveRichard MacCutchan15-Aug-24 22:13 
AnswerRe: System.* not defined or imported Pin
OriginalGriff15-Aug-24 19:17
mveOriginalGriff15-Aug-24 19:17 
QuestionCombobox item selection Pin
Member 95057569-Aug-24 22:46
Member 95057569-Aug-24 22:46 
AnswerRe: Combobox item selection Pin
OriginalGriff10-Aug-24 2:30
mveOriginalGriff10-Aug-24 2:30 
QuestionPrintQueueWatch Pin
Jorge Carlos Iglesias Alvarez2-Aug-24 6:44
Jorge Carlos Iglesias Alvarez2-Aug-24 6:44 
AnswerRe: PrintQueueWatch Pin
Richard Andrew x642-Aug-24 7:28
professionalRichard Andrew x642-Aug-24 7:28 
AnswerRe: PrintQueueWatch Pin
OriginalGriff2-Aug-24 19:49
mveOriginalGriff2-Aug-24 19:49 
Questionnetwork change event/Compare Pin
geomeo1232-Aug-24 4:47
geomeo1232-Aug-24 4:47 
AnswerRe: network change event/Compare Pin
RedDk2-Aug-24 8:58
RedDk2-Aug-24 8:58 

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.