Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Positioning popup form just to the right of a ContextMenuStrip subitem

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
Hello all,

I am using a ContextMenuStrip and for one of the subitems I need to popup a little dialog form. I want the form to appear centered relative to the respective subitem and just to the right of the end of the subitem.

The subitem Owner property gets me the bounds of the ContextMenuStrip but I am having trouble positioning the popup form properly. Since it is unrelated to the underlying form, do I need to position it using screen coordinates insead?

The form is working as it should but it loses some of the wow factor if I can't position it properly. Any ideas and/or suggestions would be welcomed!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top