Error when adding a ToolStripMenuItem
I am having trouble adding a ToolStripMenuItem but I do not know why. I have so far added many ToolStripMenuItems as follows:
File
New
Save
Save As
Print
Close
Format
Font
Colour
Help
Contents
Index
Search
About
I want to add 3 more items under the Format menu, these being: Bold, Italic, Underlined.
Each time I click on the drop down menu at design time and type Bold where it says 'Type Here' and then click away (This menu item with the text Bold should be saved) but the new menu item disappears as though I have not typed anything. When I try to type Bold again this error appears in a dialog box:
The control System.Windows.Forms.TextBox has thrown an unhandled exception in the designer and has been disabled.
Exception:
Object reference not set to an instance of an object.
Stack trace:
I then get an error from Visual Studio saying:
Microsoft Visual Studio has encounted a problem and needs to close.
Also in this dialog box, there are 3 buttons, Debug, Send Error Report and Don't Send.
Can anyone advise me as to what is going wrong when I try to add a ToolStripMenuItem?
Lucy
|