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.

My context menu does not work

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dom - 03 Mar 2008 17:27 GMT
I have a control called MyDataGridView, and the property
ContextMenuStrip is set to ContextMenu Control.

The problem is ... when I write click on MyDataGridView, the context
menu comes up in edit mode.  That is, I can click on an item and edit
it.  Also, the menu does not go away after I click on it.

One big complication.  As I said, MyDataGridView is a user-control
that extends the DataGridViewControl.  It overrides the mousedown
event.  In the override, I call a new Event ("MouseDownPrep") in which
I let the subscriber set a variable in the Args object, that cancels
the MouseDown event.  Hope that makes sense.

Any ideas on how to fix this?

Dom
Dom - 03 Mar 2008 20:10 GMT
I decided that something must have gone wrong in the designer code.  I
removed everything concerning the context menu, then redid all the
work.  Now it works fine.  So I withdraw this post.

Dom

> I have a control called MyDataGridView, and the property
> ContextMenuStrip is set to ContextMenu Control.
[quoted text clipped - 12 lines]
>
> Dom

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.