Menu strip

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone tell where to find sample code for creating a menu bar using code?

Thanks,

Mike S
 
Can anyone tell where to find sample code for creating a menu bar using code?

Thanks,

Mike S

Dim mnu as new MenuStrip() 'Create the menustrip
Dim itm as new MenuItem("File") 'Create the item
mnu.Items.Add(itm) 'Add the item to the
menustrip

Me.Controls.Add(mnu) 'Add the strip to the form
(frmMain.Controls.Add(mnu))
 
Can anyone tell where to find sample code for creating a menu bar using code?

Thanks,

Mike S

The easiest way would be to add the menu strip to a form and then look
at the designer generated code.

Thanks,

Seth Rowe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top