Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > Components & Controls > Menus & Toolbars

Menus & Toolbars Discussion of menu and toolbar components

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-27-2008, 3:36 AM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Mar 2008
Posts: 12
Reputation: 27
icemanind is on a distinguished programming path ahead
Default Context Menu Strip Issue

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-27-2008, 8:41 AM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,325
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

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.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 7:47 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.