Advertisement

07.18.2008 at 07:31AM PDT, ID: 23576968
[x]
Attachment Details

Display a dialog at a specific location

Asked by sgaggerj in Microsoft Visual Basic.Net

Tags: Vb.Net 2005

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
 
Loading Advertisement...
 
[+][-]07.18.2008 at 07:53AM PDT, ID: 22036428

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:12AM PDT, ID: 22036652

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:13AM PDT, ID: 22036672

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:15AM PDT, ID: 22036694

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:16AM PDT, ID: 22036697

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:19AM PDT, ID: 22036729

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:25AM PDT, ID: 22036801

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:31AM PDT, ID: 22036892

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: Vb.Net 2005
Sign Up Now!
Solution Provided By: FernandoSoto
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.18.2008 at 08:43AM PDT, ID: 22037030

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:54AM PDT, ID: 22037130

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628