Connecting Tech Pros Worldwide Help | Site Map

MenuStrip

Newbie
 
Join Date: Apr 2009
Posts: 21
#1: Aug 14 '09
I have created a menustrip in vb.net windows application.I typed items like &File,&Open.At design time,F and O is undelined in File and Open respectively.But at runtime,it does not seem to be.

Also,while creating context menu strip,iam not able to enter more items like cut copy paste.
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#2: Aug 14 '09

re: MenuStrip


Quote:
I have created a menustrip in vb.net windows application.I typed items like &File,&Open.At design time,F and O is undelined in File and Open respectively.But at runtime,it does not seem to be.
This is normal Windows behavior, not a bug.
If you press the [ALT] key you will see all the menus display the shortcut keystrokes; not just in your app, but all apps. Notice the same thing happens in Visual Studio.
Newbie
 
Join Date: Apr 2009
Posts: 21
#3: Aug 14 '09

re: MenuStrip


Thank you very much.Also i want to know about context menu strip.It is not getting enabled at runtime.And how to insert notifyicon on my form
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#4: Aug 14 '09

re: MenuStrip


Quote:
Also i want to know about context menu strip.It is not getting enabled at runtime.
You can make many context menus. Each control can (and often does) have it's own context menu. Once you made the menu, did you assign it to a control? (In the Properties pallet there is a ContextMenuStrip property)

The NotifyIcon is a tool in the toolbox.

Let me introduce you to your new best friend on this learning adventure we call coding: Meet the MSDN
http://msdn.microsoft.com/en-us/libr...ows.forms.aspx

Reading about the new control you want to work with, using the example code and playing with it is where we all start.
Reply