Resize control

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
3 posts Page 1 of 1
Contributors
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Resize control
XTechVB
i have a picturebox an a button and im trying to resize the picturebox's width with the button like this
Code: Select all
picBox1.width +=5
but this resizes the picturebox on the right side, how can i resize it on the left side?
You can find me on Facebook or on Skype mihai_92b
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

Re: Resize control
AnoPem
XTechVB wrote:
i have a picturebox an a button and im trying to resize the picturebox's width with the button like this
Code: Select all
picBox1.width +=5
but this resizes the picturebox on the right side, how can i resize it on the left side?
Try resize and move its posistion
https://t.me/pump_upp
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Re: Resize control
XTechVB
never mind i got it.
Code: Select all
  picBox.SetBounds(picBox.Location.X - 5, picBox.Location.Y, picBox.Width + 5, picBox.Height)
You can find me on Facebook or on Skype mihai_92b
3 posts Page 1 of 1
Return to “Coding Help & Support”