Results 1 to 5 of 5

Thread: x and y position on a form

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    Hampton Beach
    Posts
    513

    Question x and y position on a form

    I have a form and would like to know the x and y positions on the form... How can I do this?

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    x and y positions of what?

    the form relative to the monitor? where the mouse is on the form? please be more specific

  3. #3
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    VB Code:
    1. Me.Location
    or
    VB Code:
    1. Me.Left
    2. Me.Top
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    Hampton Beach
    Posts
    513
    I have a pciture on the form and I want the user to click on a x and y position on the form and a second pic loads. But first I need to know the x and y position on the pic... For example I have a pic of Windows XP and I when the user clicks the Start button (the pic on the form) a second pic will load... I need to know the x and y of the start button..

  5. #5
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    There is every chance I've misunderstood what you're trying to do, but...

    Why don't you put a transparent control (e.g. a Panel) over the picture of the start button and use the Click event of the control to load your second picture?
    This world is not my home. I'm just passing through.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width