Click here to Skip to main content
15,510,771 members
Home / Discussions / C#
   

C#

 
GeneralRe: Class Inheritance Pin
Nick Parker27-Jan-04 8:05
protectorNick Parker27-Jan-04 8:05 
GeneralSelect node in a TreeView Pin
thomasa26-Jan-04 23:31
thomasa26-Jan-04 23:31 
GeneralRe: Select node in a TreeView Pin
Heath Stewart27-Jan-04 4:40
protectorHeath Stewart27-Jan-04 4:40 
GeneralRe: Select node in a TreeView Pin
Uwe Keim28-Jan-04 4:09
sitebuilderUwe Keim28-Jan-04 4:09 
GeneralRe: Select node in a TreeView Pin
Heath Stewart28-Jan-04 6:38
protectorHeath Stewart28-Jan-04 6:38 
GeneralRe: Select node in a TreeView Pin
Uwe Keim28-Jan-04 6:46
sitebuilderUwe Keim28-Jan-04 6:46 
QuestionHow to disable a control in MDI form from a child form Pin
okoji Cyril26-Jan-04 21:56
okoji Cyril26-Jan-04 21:56 
AnswerRe: How to disable a control in MDI form from a child form Pin
Heath Stewart27-Jan-04 4:19
protectorHeath Stewart27-Jan-04 4:19 
The easiest way - albeit not a very well-designed way - is to cast the Form.MdiParent property to your MDI parent's Form-derivative class, then access the Form.Menu property and - through the provided properties - disable the MenuItem you want.

A good design would use a modular design pattern in such a way that services are provided to the MDI child forms allowing them easily access the menu, or use the MenuItem.Merge method to merge menus defined on the MSI children with the menu for the parent form. See Form.MergedMenu property for more information.

Using the latter methods allows client forms to provide menus to the parent that they want to use. This is VERY common for most MDI applications. Just open Microsoft Word. Look at the menus available. Now close just the document (leaving the application window open). Your options are greatly decreased (although this process uses the concepts of Active Document containers and servers, but the idea is the same).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralC# and Scintilla Pin
yarns26-Jan-04 21:45
yarns26-Jan-04 21:45 
GeneralRe: C# and Scintilla Pin
Uwe Keim28-Jan-04 4:06
sitebuilderUwe Keim28-Jan-04 4:06 
GeneralRe: C# and Scintilla Pin
wonea25-Feb-10 2:49
wonea25-Feb-10 2:49 
QuestionReal-world commercial .NET Applications? Any? Pin
Uwe Keim26-Jan-04 19:13
sitebuilderUwe Keim26-Jan-04 19:13 
AnswerRe: Real-world commercial .NET Applications? Any? Pin
Mazdak26-Jan-04 20:27
Mazdak26-Jan-04 20:27 
GeneralRe: Real-world commercial .NET Applications? Any? Pin
Uwe Keim26-Jan-04 23:12
sitebuilderUwe Keim26-Jan-04 23:12 
AnswerRe: Real-world commercial .NET Applications? Any? Pin
Heath Stewart27-Jan-04 4:11
protectorHeath Stewart27-Jan-04 4:11 
GeneralRe: Real-world commercial .NET Applications? Any? Pin
Uwe Keim27-Jan-04 4:19
sitebuilderUwe Keim27-Jan-04 4:19 
GeneralRe: Real-world commercial .NET Applications? Any? Pin
Nick Parker27-Jan-04 7:49
protectorNick Parker27-Jan-04 7:49 
AnswerRe: Real-world commercial .NET Applications? Any? Pin
John Fisher27-Jan-04 8:08
John Fisher27-Jan-04 8:08 
Questionhow to download file not to change timestamp using HTTP Pin
yu-yu26-Jan-04 18:26
yu-yu26-Jan-04 18:26 
AnswerRe: how to download file not to change timestamp using HTTP Pin
Heath Stewart27-Jan-04 4:02
protectorHeath Stewart27-Jan-04 4:02 
GeneralRe: how to download file not to change timestamp using HTTP Pin
yu-yu27-Jan-04 16:31
yu-yu27-Jan-04 16:31 
GeneralSystem.XML.XMLDocument Pin
Anonymous26-Jan-04 17:04
Anonymous26-Jan-04 17:04 
GeneralRe: System.XML.XMLDocument Pin
Heath Stewart27-Jan-04 3:54
protectorHeath Stewart27-Jan-04 3:54 
QuestionThis cool thing!!...howz it done? Pin
srt726-Jan-04 14:27
srt726-Jan-04 14:27 
AnswerRe: This cool thing!!...howz it done? Pin
Colin Angus Mackay26-Jan-04 15:00
Colin Angus Mackay26-Jan-04 15:00 

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.