Thread: image location

Results 1 to 5 of 5
  1. #1
    Depature's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Cold

    image location

    hey guys at mpgh, please help me with my problem

    how to place a image in the middle of a programm

    and the picture should also be in the middle of the programm when i resize the programm

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Picturebox?



  3. #3
    Depature's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Cold
    Quote Originally Posted by Blubb1337 View Post
    Picturebox?
    yes, picturebox

  4. #4
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Code:
    PictureBox.Location.X = Me.Width / 2
    PictureBox.Location.Y = Me.Height / 2
    Something like

  5. The Following User Says Thank You to Lyoto Machida For This Useful Post:

    Depature (06-16-2011)

  6. #5
    Lonely Tedy Bear's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Location
    Utah,Salt Lake Posts: 5,371 ►►►►Lonely-Tedy◄◄◄◄
    Posts
    1,541
    Reputation
    -151
    Thanks
    321
    My Mood
    Lonely
    P.locaion.x=me.location.x - me.width / 2
    lol im on my phone xD something like that. Just set the pbox location x and y as the form 1 but / by 2 so it will be in middle =P