Click here to Skip to main content
15,904,817 members
Home / Discussions / C#
   

C#

 
GeneralAutomating word documents from C# Pin
Marix27-Jan-04 0:06
Marix27-Jan-04 0:06 
GeneralRe: Automating word documents from C# Pin
Mazdak27-Jan-04 1:59
Mazdak27-Jan-04 1:59 
GeneralRe: Automating word documents from C# Pin
Heath Stewart27-Jan-04 4:24
protectorHeath Stewart27-Jan-04 4:24 
GeneralRe: Automating word documents from C# Pin
Marix27-Jan-04 23:16
Marix27-Jan-04 23:16 
Generale-mail files Pin
Kenneth_i26-Jan-04 23:06
Kenneth_i26-Jan-04 23:06 
GeneralRe: e-mail files Pin
Dmitriy Kostovetskiy27-Jan-04 0:30
Dmitriy Kostovetskiy27-Jan-04 0:30 
GeneralRe: e-mail files Pin
JonathanSlenders27-Jan-04 0:42
sussJonathanSlenders27-Jan-04 0:42 
GeneralRe: e-mail files Pin
Mazdak27-Jan-04 1:54
Mazdak27-Jan-04 1:54 
GeneralRe: e-mail files Pin
Kenneth_i27-Jan-04 2:09
Kenneth_i27-Jan-04 2:09 
GeneralRe: e-mail files Pin
Kenneth_i27-Jan-04 2:07
Kenneth_i27-Jan-04 2:07 
GeneralRe: e-mail files Pin
Kenneth_i27-Jan-04 2:05
Kenneth_i27-Jan-04 2:05 
GeneralRe: e-mail files Pin
Heath Stewart27-Jan-04 4:04
protectorHeath Stewart27-Jan-04 4:04 
GeneralRe: e-mail files Pin
Kenneth_i27-Jan-04 14:08
Kenneth_i27-Jan-04 14:08 
GeneralClass Inheritance Pin
Gareth_Hastings26-Jan-04 22:49
Gareth_Hastings26-Jan-04 22:49 
GeneralRe: Class Inheritance Pin
Dmitriy Kostovetskiy26-Jan-04 23:28
Dmitriy Kostovetskiy26-Jan-04 23:28 
GeneralRe: Class Inheritance Pin
Nick Parker27-Jan-04 7:05
protectorNick Parker27-Jan-04 7:05 
GeneralSelect node in a TreeView Pin
thomasa26-Jan-04 22:31
thomasa26-Jan-04 22:31 
GeneralRe: Select node in a TreeView Pin
Heath Stewart27-Jan-04 3:40
protectorHeath Stewart27-Jan-04 3:40 
GeneralRe: Select node in a TreeView Pin
Uwe Keim28-Jan-04 3:09
sitebuilderUwe Keim28-Jan-04 3:09 
GeneralRe: Select node in a TreeView Pin
Heath Stewart28-Jan-04 5:38
protectorHeath Stewart28-Jan-04 5:38 
GeneralRe: Select node in a TreeView Pin
Uwe Keim28-Jan-04 5:46
sitebuilderUwe Keim28-Jan-04 5:46 
QuestionHow to disable a control in MDI form from a child form Pin
okoji Cyril26-Jan-04 20:56
okoji Cyril26-Jan-04 20:56 
AnswerRe: How to disable a control in MDI form from a child form Pin
Heath Stewart27-Jan-04 3:19
protectorHeath Stewart27-Jan-04 3: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 20:45
yarns26-Jan-04 20:45 
GeneralRe: C# and Scintilla Pin
Uwe Keim28-Jan-04 3:06
sitebuilderUwe Keim28-Jan-04 3:06 

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.