Hi
I have a pictureBox that I want to be center aligned to the form
i tried
PictureBox1.Left = (Me.ScaleWidth / 2) - (PictureBox1.Width / 2)
But the pictureBox is not center aligned
AutoSize = False for this PictureBox
When I apply the above code to any control like Label it works
Is there any reason?
Thanks
I have a pictureBox that I want to be center aligned to the form
i tried
PictureBox1.Left = (Me.ScaleWidth / 2) - (PictureBox1.Width / 2)
But the pictureBox is not center aligned
AutoSize = False for this PictureBox
When I apply the above code to any control like Label it works
Is there any reason?
Thanks