Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2007

Tip: Looking for answers? Try searching our database.

Windows and Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Allen Maki - 19 Feb 2007 05:36 GMT
Hi Everybody,

I need your help.

I have MS Visual Studio .NET 2003.  I noticed that if I added a context menu
to a form.  It will not work, unless you add the line:

This ->ContextMenu = this->contextMenu;

manually.

Can anybody tell me why?

IF you have the book named:

Microsoft visual c++ .net     step by step  made by Microsoft press, you
find this example in chapter 16 page 317
Ben Voigt - 19 Feb 2007 22:02 GMT
> Hi Everybody,
>
[quoted text clipped - 8 lines]
>
> Can anybody tell me why?

You can usually assign that using the designer, but yes it's necessary to
assign a specific context-menu.  This is because you could store multiple
context menu controls on a form, but one is for the form itself, one is a
right-click menu for a grid, one for a text-box, etc.  The runtime has no
way of knowing how they pair up until you tell it.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.