I need some help setting the maximum size on a picture box.

I thought the syntax for setting size was picturebox.MaximumSize = (Width,Height) but doesnt seem to work. Did syntax change from VB6?
Thanks in advance

Recommended Answers

The syntax has changed. You can set it by

PictureBox1.MaximumSize = New System.Drawing.Size(200, 200)
Jump to Post

All 2 Replies

The syntax has changed. You can set it by

PictureBox1.MaximumSize = New System.Drawing.Size(200, 200)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.