Click here to Skip to main content
16,010,334 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem in inserting data Pin
Mujz.........26-May-07 8:48
Mujz.........26-May-07 8:48 
AnswerRe: problem in inserting data Pin
Dave Herren25-May-07 4:20
Dave Herren25-May-07 4:20 
GeneralRe: problem in inserting data Pin
Mujz.........27-May-07 22:08
Mujz.........27-May-07 22:08 
QuestionSerialization problem Pin
Mark F.25-May-07 3:38
Mark F.25-May-07 3:38 
AnswerRe: Serialization problem Pin
JoeSharp25-May-07 4:05
JoeSharp25-May-07 4:05 
AnswerRe: Serialization problem Pin
Manoj Kumar Rai25-May-07 4:36
professionalManoj Kumar Rai25-May-07 4:36 
GeneralRe: Serialization problem Pin
Mark F.25-May-07 5:01
Mark F.25-May-07 5:01 
QuestionDesigning MenuStrip in derived form Pin
Evil_Giraffe25-May-07 3:27
Evil_Giraffe25-May-07 3:27 
I am writing an application for editing various different documents. I have a base form that handles the basic document actions, such as placing the name of the document in the title bar, having a Save menu item, etc - basically this form interacts with my base Document class.

To handle each of the derived Document classes, I am creating a form derived from the base form, and adding document specific actions (at this point, it's mostly dropping the editor control for the specific document on to the form and providing a constructor with the derived document class rather than the general document class).

I've got to the stage where I have implemented a MenuStrip on the base form that has the Save/Save As functionality for the document as ToolStripMenuItems, and this form handles merging with the MDI Parent menu. I have provided a "Document" menu as well which is blank, that is designed for deriving forms to add document specific commands to.

What I would like to do is have the designer be able to show the MenuStrip from the base class when designing the derived class, so that I can use the designer to implement the derived form's menu items.

I've got as far as altering the modifier of the MenuStrip and "Document" ToolStripMenuItem to be protected so that I can at least access them from code in the derived form. This lets me programmatically add my items to the Document menu, but doesn't let me do anything in the Designer.

I know the designer has issues with inherited forms, having struggled to get as much from the designer as I have managed to, but does anyone know of anyway to get inherited items like MenuStrips showing up in the designer?

As I say, I'm able to add them programmatically, but it would be nice to be able to use the Designer if there is an easy way to get it working. Any help / links to info appreciated. Thanks!
QuestionHow to Identify mail Language? Pin
ArunkumarSundaravelu25-May-07 2:44
ArunkumarSundaravelu25-May-07 2:44 
AnswerRe: How to Identify mail Language? Pin
Paddy Boyd25-May-07 2:59
Paddy Boyd25-May-07 2:59 
GeneralRe: How to Identify mail Language? Pin
ArunkumarSundaravelu25-May-07 3:04
ArunkumarSundaravelu25-May-07 3:04 
AnswerRe: How to Identify mail Language? Pin
Muammar©25-May-07 7:34
Muammar©25-May-07 7:34 
GeneralRe: How to Identify mail Language? Pin
ArunkumarSundaravelu28-May-07 0:09
ArunkumarSundaravelu28-May-07 0:09 
Questionrerieving of logon hours of a user in active directory Pin
Mickky25-May-07 2:29
Mickky25-May-07 2:29 
Questioncontrolling wpf window with normal c# form? Pin
Mir_As25-May-07 2:01
Mir_As25-May-07 2:01 
AnswerRe: controlling wpf window with normal c# form? Pin
teejayem25-May-07 2:16
teejayem25-May-07 2:16 
QuestionWriting a plug In Pin
IrfanHaleem25-May-07 1:46
IrfanHaleem25-May-07 1:46 
AnswerRe: Writing a plug In Pin
JoeSharp25-May-07 2:01
JoeSharp25-May-07 2:01 
GeneralRe: Writing a plug In Pin
Tarakeshwar Reddy25-May-07 3:11
professionalTarakeshwar Reddy25-May-07 3:11 
QuestionBinding TreeView Control to an Arraylist Pin
KKrista25-May-07 1:45
KKrista25-May-07 1:45 
AnswerRe: Binding TreeView Control to an Arraylist Pin
Manoj Kumar Rai25-May-07 2:03
professionalManoj Kumar Rai25-May-07 2:03 
GeneralRe: Binding TreeView Control to an Arraylist Pin
KKrista25-May-07 2:18
KKrista25-May-07 2:18 
GeneralRe: Binding TreeView Control to an Arraylist Pin
zaboboa25-May-07 4:41
zaboboa25-May-07 4:41 
QuestionDisable the system keys (PageUp) in my TreeView Pin
anderslundsgard25-May-07 1:44
anderslundsgard25-May-07 1:44 
AnswerRe: Disable the system keys (PageUp) in my TreeView Pin
Muammar©25-May-07 7:58
Muammar©25-May-07 7: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.