[Closed] Adding Menu Bar to Dotnet Form
Hi,
I`m struggling with dotnet forms, cant find out how to add a MenuBar to form control witch will appear as :
File Edit options Help etc.
Is it possible?
How to construct this type of control?
(
–Create a DotNet Form
hForm = dotNetObject “System.Windows.Forms.Form”
hForm.show() –show the Form with the Button
)
I use this as a starter, dont want to use maxrollout in this case…
Regards
Eryk
Ok, I have solved it :), have read StickyDotNet.
(
–Create a DotNet Form
hForm = dotNetObject “System.Windows.Forms.Form”
theMenu = dotNetObject “menustrip” —Could not find this
DnToolStripMenuItem = dotNetObject “System.Windows.Forms.ToolStripMenuItem”
DnToolStripMenuItem.text=“File”
theMenu.items.add DnToolStripMenuItem
hForm.controls.add theMenu
hForm.show() –show the Form with the MenuStrip
)
regards
Eryk