Add MenuStrip
Add MenuStrip
Hi Sapien I am trying to add menu items to my form, but I need som help. I add the menustrip, and som text, but how do I add code to menuitems. fx. I want the exit menu item to do a " $MainForm.close() " when I click it.I am using version 2.0.6uploads/26892/30-08-2011_15-59-27.png
Add MenuStrip
To add
an event (script block) to the menu item you can do either of the following:
Option
1: Select the menu item. Go to the Property Pane press the Events button (lightning
bolt icon) and add an event by typing a name or double clicking on the "Click" event.
Option
2: This is the easiest method. Double click on the Menu Item and it will automatically create the default
event. In this case the default event is the "Click" event.
You
may want to take a look at the Tic Tac Plebius example. It utilizes a menu strip
as well.
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.