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
 
Back
Top