G Guest Oct 18, 2007 #1 Can anyone tell where to find sample code for creating a menu bar using code? Thanks, Mike S
G ge0193387 Oct 18, 2007 #2 Can anyone tell where to find sample code for creating a menu bar using code? Thanks, Mike S Click to expand... 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 Click to expand... 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))
R rowe_newsgroups Oct 18, 2007 #3 Can anyone tell where to find sample code for creating a menu bar using code? Thanks, Mike S Click to expand... The easiest way would be to add the menu strip to a form and then look at the designer generated code. Thanks, Seth Rowe
Can anyone tell where to find sample code for creating a menu bar using code? Thanks, Mike S Click to expand... The easiest way would be to add the menu strip to a form and then look at the designer generated code. Thanks, Seth Rowe