image location

Posts 1–5 of 5 · Page 1 of 1
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
Quote Originally Posted by Blubb1337 View Post
Picturebox?
yes, picturebox
Code:
PictureBox.Location.X = Me.Width / 2
PictureBox.Location.Y = Me.Height / 2
Something like
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
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us