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 / C# / March 2008

Tip: Looking for answers? Try searching our database.

Question on Context menus

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dom - 26 Mar 2008 19:24 GMT
I have a number of controls that use the same context menus.  In some
events, I need to know which control is showing the menu.  I just use
whichever control has the "focused" property, since I assume one of
them must.  Is this the correct way?

Dom
vo1d - 26 Mar 2008 20:51 GMT
are you talking about ContextMenu or ContextMenuStrip?
vo1d

> I have a number of controls that use the same context menus.  In some
> events, I need to know which control is showing the menu.  I just use
> whichever control has the "focused" property, since I assume one of
> them must.  Is this the correct way?
>
> Dom
Dom - 27 Mar 2008 16:37 GMT
> are you talking about ContextMenu or ContextMenuStrip?
> vo1d
[quoted text clipped - 7 lines]
>
> - Show quoted text -

Sorry, I meant ContextMenuStrips.  Although, now that I'm on the
subject, I really don't know the difference between the two.

Dom
vo1d - 28 Mar 2008 12:40 GMT
hi dom,
contextmenustrips came with net 2.0 and replaces the contextmenus.
they are much more flexible and easier to use with regards to have custom
drawing  or icons.
with regards to your question, you can use the SourceControl property of the
contextmenustrip.
cheers
vo1d

> > are you talking about ContextMenu or ContextMenuStrip?
> > vo1d
[quoted text clipped - 12 lines]
>
> Dom
Dom - 28 Mar 2008 14:27 GMT
> hi dom,
> contextmenustrips came with net 2.0 and replaces the contextmenus.
[quoted text clipped - 23 lines]
>
> - Show quoted text -

Thanks, exactly what I wanted.

Dom

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.