Windows Develop Bookmark and Share   
 index > Windows Forms General > Help opening forms
 

Help opening forms

i made an aboutbox and i want to be able to open it using a menustrip control. I just cant get the form open so if any1 can help
Big Bill  Friday, August 17, 2007 8:01 PM

After you've created the item (such as a ToolStripMenuItem) you want to trigger the launch of your about dialog... double click on it to make an event handler for it's default event and add this code (which may need to be changed based on your names):

Code Snippet

AboutBox1 dialog = new AboutBox1();

dialog.ShowDialog();

Brendan Grant  Friday, August 17, 2007 8:08 PM

After you've created the item (such as a ToolStripMenuItem) you want to trigger the launch of your about dialog... double click on it to make an event handler for it's default event and add this code (which may need to be changed based on your names):

Code Snippet

AboutBox1 dialog = new AboutBox1();

dialog.ShowDialog();

Brendan Grant  Friday, August 17, 2007 8:08 PM
hey thanks msdn is great everyone i so helpfull
Big Bill  Friday, August 17, 2007 8:20 PM

You can use google to search for other answers

Custom Search

More Threads

• Button with submenu
• Validation Of Controls
• Graphics.DrawString() does not draw colored anti-aliasing
• Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
• For consideration
• MDI Child controls mirrored
• Illegal Crossthread DataGridView
• OpenForms FormCollection Item
• Hosting Word document in winform
• ToolStrip leaks after calling Dispose