How to build a Main Menu screen

Posted by flow overstack on Stack Overflow See other posts from Stack Overflow or by flow overstack
Published on 2011-01-01T10:38:52Z Indexed on 2011/01/01 10:53 UTC
Read the original article Hit count: 164

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about winforms