Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > ContextMenu in wrong location
 

ContextMenu in wrong location

Ihave ContextMenu associatedwith DataGridView column that would open when user right clicks on any cell in that column. I am noticing a weird behavior when I click on column cells the first few times, it opens in a location on screen that's not even in the application area. After a few clicks, it behaves normally.

Has anyone seen this before? Any solution/tip would be appreciated.

A_Monk  Wednesday, September 12, 2007 12:48 PM

Hi, A_Monk,

Well, I cannot reproduce this issue.

Does it happen to all of your projects?

And can you give us some steps to reproduce this issue?

Regards

Yu Guo â€?MSFT  Friday, September 14, 2007 3:34 AM

We are changing the issue type to “Comment�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
Thank you!

Yu Guo â€?MSFT  Tuesday, September 18, 2007 7:37 AM

I'm experiencing the same weird behaviourin one of the contextmenu in my application popping in the wrong location. This is a simple context menu that pops up by right-clicking on a listbox. It has worked without a problem for long time. All of a sudden it started popping up way off where it's supposed to, sometimes outside the application boundaries. For testing purposes I tried another contextmenu for the same list box and it worked fine. I also tried associating the contextmenu in question with a different list box and it exhibited the same weird behaviour.

How can the startup location of a contextmenu be controlled?

Thank you,

Najibkhalil  Monday, October 01, 2007 1:36 PM

You can use google to search for other answers

Custom Search

More Threads

• DataGridView columns in designer
• Datagrid Columns
• DataGridViewButtonColumn question
• Updating Progress While Filling Dataset
• Operation did not succeed because the program cannot commit or quit a cell value change.
• visual .net vs visual 2005
• Formview navigating to a particular record
• datagridview column immage
• DataGridViewLinkColumn - How to catch the click event
• DataGrid Not Updating