Groups | Blog | Home
all groups > dotnet windows forms > october 2006 >

dotnet windows forms : ContextMenuStrip for TopMost Form won't display over taskbar


Greg Bahns
10/30/2006 6:11:53 PM
Hi,

I have an app with a Form whose TopMost property set to true so that it
display on top of everything else on the desktop, including the Windows
TaskBar. This form's ContextMenuStrip property is set so that when you
right-click the form, it displays this as the context menu. So far so good.

The problem is that when the form is close to the bottom of the screen, and
you right-click the bottom edge of the form, the context menu won't display
over the taskbar like the form does, so it ends up being displayed too high.
The taller the user's taskbar is, the worse the problem is.

I've tried a couple things to fix this, but no luck. Anyone know how to get
a ContextMenuStrip to display over the taskbar?

Thanks,
Greg

Bryan Phillips
10/31/2006 2:12:36 AM
If you can't get this to work, the ContextMenu control still works the
way you want.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com




[quoted text, click to view]
AddThis Social Bookmark Button