Hi all,
i need to display a dialog at a specific location on the screen.
I have set it to StartPosition=Manual
here's how i have my gui set up
I have my main form that contains all controls
inside the main form i have a menu strip (dock=top)
below that, inside the main form, i have a split container (dock=fill)
on the left split container panel is a treeview which controls which panel on the right is visible.
on the right split container panel are panels that are dock=fill
the panels in this split container panel are added at run time (like plugins)
the main form is set to maximize
in one of the panels i have a label that when the user clicks it, a dialog will appear.
i need this dialog to be set at a certain position, but i don't know how to get the position i need.
the position is (4,73) relative to the panel where the clicked label is - but that is not where the control is relative to the main form.
my question is, how do i get the position of the control relative to the main form?
Start Free Trial