471,327 Members | 2,634 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,327 software developers and data experts.

'Modal' ContextMenu?

I'd like to bring up a context menu and block execution until the user either
makes a selection or dismisses the menu. As in the Win32 TrackPopupMenu.

Another post indicated that I might actually be able to call TrackPopupMenu,
but I don't know where the 'handle' argument would come from. Does anyone
know how to do this or to otherwise achieve the same effect?

Feb 3 '06 #1
1 1546
DrBonzo,

You can get the handle of a menu through the Handle property, and then
pass that to TrackPopupMenu.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"DrBonzo" <Dr*****@discussions.microsoft.com> wrote in message
news:86**********************************@microsof t.com...
I'd like to bring up a context menu and block execution until the user
either
makes a selection or dismisses the menu. As in the Win32 TrackPopupMenu.

Another post indicated that I might actually be able to call
TrackPopupMenu,
but I don't know where the 'handle' argument would come from. Does anyone
know how to do this or to otherwise achieve the same effect?

Feb 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Oculus | last post: by
11 posts views Thread by Graham Charles | last post: by
3 posts views Thread by Libby Sharf | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.