Solved

How to open a form at a specific location?

Posted on 2008-11-01
3
1,508 Views
Last Modified: 2012-05-05
How would I open a form at a specific location, say the x and y of the mouse click or the coordinates of a control that is clicked on?
0
Comment
Question by:Hawkvalley1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 100 total points
ID: 22859856
Something like below, modifying the X and Y coordinates to suit.

Wayne
Dim frm As New Form2
With frm
    .StartPosition = FormStartPosition.Manual
    .Location = New Point(x:=100, y:=100)
    .Show()
End With

Open in new window

0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 22859866
before you show the form with Show() or ShowDialog(), change the Location property of the form.
0
 
LVL 9

Author Closing Comment

by:Hawkvalley1
ID: 31512431
Thanks...
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question