By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,869 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,869 IT Pros & Developers. It's quick & easy.

How to set Contextmenu focus

P: n/a

I got a problem with ContextMenu. I'm using a hot-key (like Ctrl-B) to
show contextMenu in my program. Things is like below:
contextMenu.Show(Form1, New

But it looks that the contextMenu can not get focus in this way,
because I can not use the Up/Down keys on keyboard to do menu
selections with the contextMenu.

I did try SetFocus on it, but doesn't work:
private static extern IntPtr SetFocus(IntPtr hWnd);


Is there anyone have idea on this problem? Your help is greatly


Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.