How to build a Main Menu screen
- by flow overstack
Good day (and happy New Year),
I'm a beginner VB.Net programmer using VS 2008.
I'm planning a new winform project whose main form should look more or less like this:
MAIN MENU
1. DoSomething1
2. DoSomething2
3. DoSomething3
...
Please choose: [TextBox]
The user can either choose from the Main Menu (by clicking an item) or enter the item number in the textbox. For example, if the user clicks DoSomething3 in the Main Menu (or alternatively enters 3 in the textbox), another form will be opened and hide the main form.
What would be the best way to implement it?
Specifically, I would like to know how I make so that choosing from the menu and entering a number in the textbox fire the same event.
Any help or hints will be appreciated.