Results 1 to 3 of 3

Thread: [Help] Map Grid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2010
    Posts
    106

    [Help] Map Grid

    Hey i want to get a cord of a map from a pricture on vb 2008

    //FAKE CODE

    mouseinside picturebox sub()
    label1.text = picturebox.grid.x & ", " pictureboxgrid.y

    ////
    now please transltae in vb 2008

    thz alot
    iif u want to help me even more or have this img as an exp that would be grate(and yes its for a game)
    USE THE POINTER 0> AS THE REFERENCE NOT THE CORD X,Y

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [Help] Map Grid

    Handle the MouseMove event of the PictureBox. The 'e' parameter will give you the X and Y coordinates of the mouse pointer.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2010
    Posts
    106

    Re: [Help] Map Grid

    Quote Originally Posted by jmcilhinney View Post
    Handle the MouseMove event of the PictureBox. The 'e' parameter will give you the X and Y coordinates of the mouse pointer.
    can you plz elaborate

Tags for this Thread

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