Click here to Skip to main content
15,916,318 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Window Form Location vb.net2005 Pin
Dave Kreskowiak24-Oct-07 4:29
mveDave Kreskowiak24-Oct-07 4:29 
aransiola wrote:
The listview is on Mdimain window. Now i want the other windows cordinattes to be using the listview cordinates


Since you haven't said anything about the parent container for this second form, I'm assuming you're not setting a parent window for the form. All you have to do is map the location of the ListView to Screen coordinates and use that result as the location for the new form.
Dim newLocation As Point = ListView1.PointToScreen(ListView1.Location)
Dim newForm As New Form2()
newForm.Location = newLocation



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


AnswerRe: Window Form Location vb.net2005 Pin
Tom Deketelaere23-Oct-07 20:41
professionalTom Deketelaere23-Oct-07 20:41 
GeneralRe: Window Form Location vb.net2005 Pin
aransiola24-Oct-07 9:34
aransiola24-Oct-07 9:34 
QuestionCode Is Not Working . Pin
Dan Suthar23-Oct-07 6:15
professionalDan Suthar23-Oct-07 6:15 
AnswerRe: Code Is Not Working . Pin
pmarfleet23-Oct-07 6:56
pmarfleet23-Oct-07 6:56 
AnswerRe: Code Is Not Working . Pin
Scott Dorman23-Oct-07 7:12
professionalScott Dorman23-Oct-07 7:12 
GeneralRe: Code Is Not Working . Pin
Dan Suthar24-Oct-07 6:22
professionalDan Suthar24-Oct-07 6:22 
GeneralRe: Code Is Not Working . Pin
Scott Dorman24-Oct-07 12:34
professionalScott Dorman24-Oct-07 12:34 
QuestionText Problem Pin
saldarius23-Oct-07 5:56
saldarius23-Oct-07 5:56 
AnswerRe: Text Problem Pin
pmarfleet23-Oct-07 6:15
pmarfleet23-Oct-07 6:15 
AnswerRe: Text Problem Pin
Scott Dorman23-Oct-07 7:21
professionalScott Dorman23-Oct-07 7:21 
Questionsending data to the printer USing VB6.0 Pin
jkonduru23-Oct-07 5:10
jkonduru23-Oct-07 5:10 
AnswerRe: sending data to the printer USing VB6.0 Pin
Dave Kreskowiak23-Oct-07 5:19
mveDave Kreskowiak23-Oct-07 5:19 
GeneralRe: sending data to the printer USing VB6.0 Pin
jkonduru23-Oct-07 5:24
jkonduru23-Oct-07 5:24 
GeneralRe: sending data to the printer USing VB6.0 Pin
Dave Kreskowiak23-Oct-07 5:32
mveDave Kreskowiak23-Oct-07 5:32 
GeneralRe: sending data to the printer USing VB6.0 Pin
jkonduru23-Oct-07 5:38
jkonduru23-Oct-07 5:38 
GeneralRe: sending data to the printer USing VB6.0 Pin
Dave Kreskowiak23-Oct-07 5:43
mveDave Kreskowiak23-Oct-07 5:43 
GeneralRe: sending data to the printer USing VB6.0 Pin
jkonduru23-Oct-07 5:52
jkonduru23-Oct-07 5:52 
GeneralRe: sending data to the printer USing VB6.0 Pin
Dave Kreskowiak23-Oct-07 6:05
mveDave Kreskowiak23-Oct-07 6:05 
QuestionChange to design view ms access's form from code Pin
haggenx23-Oct-07 4:49
haggenx23-Oct-07 4:49 
AnswerRe: Change to design view ms access's form from code Pin
Dave Kreskowiak23-Oct-07 5:03
mveDave Kreskowiak23-Oct-07 5:03 
GeneralRe: Change to design view ms access's form from code Pin
haggenx24-Oct-07 4:53
haggenx24-Oct-07 4:53 
QuestionSoftware Licensing VB.NET Pin
Cory Kimble23-Oct-07 3:27
Cory Kimble23-Oct-07 3:27 
AnswerRe: Software Licensing VB.NET Pin
Dave Kreskowiak23-Oct-07 4:53
mveDave Kreskowiak23-Oct-07 4:53 
QuestionRemoting [modified] Pin
RG_SA23-Oct-07 3:14
RG_SA23-Oct-07 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.