Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21159

PictureBox Alignment

$
0
0
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

Viewing all articles
Browse latest Browse all 21159

Trending Articles