Saturday, November 13, 2010

Visual Basic Change size of picture box using radio buttons?

Hi i want to change the size of my picture box in vb by selecting radio button. I have 3 radio buttons; small, medium, and large. Can someone tell me how i would code this please? I can only use one picture box so somewhere in the code it has to change it based on size.

Thank you!Visual Basic Change size of picture box using radio buttons?
When you select the Radio button say named Opt1... Opt1_Click will fire.. Within there set the Height and Width of the picture box



If the Radio buttons are indexed (which is easiest) you can do something like



picture1.width = Choose(index, 500, 1000, 1500)

picture1.height = Choose(index, 500, 1000, 1500)Visual Basic Change size of picture box using radio buttons?
Hey Brad,

This is Professor Dudley. Is that Lab really that hard? You could've found easier answers just by googling.



See you in class.

No comments:

Post a Comment