'Modal' ContextMenu?

G

Guest

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?
 
N

Nicholas Paldino [.NET/C# MVP]

DrBonzo,

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

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top