![]() |
|
|||||||
| Menus & Toolbars Discussion of menu and toolbar components |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all. I'm having I problem with something that I think is a bug and I'm hoping someone has a workaround.
I have a Windows Form application and I created a user control. This user control has a ContextMenuStrip assigned to it (so when I right click on the control, it pops up a menu). I then add my user control to my main form and everything works fine. The issue though, is when I dock my user control to the bottom of my form and I right click on my control, the menu pops up about 3 or 4 inches above where my mouse pointer actually is. The issue only seems to happen when I dock my user control. Anyone have any suggestions to get around this odd behavior? |
|
||||
|
It is not a bug, the behaviour is by design so the menu will still fully display when there is limited space. Ever tried context menu on system tray icons? The same can be seen for a maximized form context menu if you challenge the right-bottom borders. You can use ContextMenuStrip.SourceControl property to find which control the menu relates to.
__________________
See this thread about how to use forum markup codes for code blocks etc (present the problem/post properly )Some useful links: Learning videoes, WMI Code Creator, MSDN, The Code Project, WindowsClient.net, ASP.net, W3 Schools, Regular-Expressions.info, GDI+ FAQ DR. WEIR: Download it to a non-networked, firewalled computer. TECHNICIAN: Yes, ma'am. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|