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

Center Aligning the right mouse click menu

P: n/a
Hi

I would like to center align the menu that gets displayed when right mouse
is clicked. In MFC, the function TrackPopupMenu takes a parameter that
determines the alignment of the menu (left, right or centered). How do I do
that in C#?

Regards
Sundar

Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sundar,

It appears that you will have to handle the displaying of the menu
yourself. To do this, you will probably have to handle the right click
event for the control (or whenever you want the context menu to pop up).
Once you have that, you will have to call the TrackPopupMenu method yourself
through the P/Invoke layer.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Sundar" <su****@sundar.com> wrote in message
news:wz*************@news.level3.com...
Hi

I would like to center align the menu that gets displayed when right mouse
is clicked. In MFC, the function TrackPopupMenu takes a parameter that
determines the alignment of the menu (left, right or centered). How do I do that in C#?

Regards
Sundar

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.