This may seem extremely simple, but I want to have in VB a code that will change the width of a TextBox when a button in the form is clicked. How can I go about this?
How to change the width of a TextBox in Acces form, when button clicked.
Collapse
X
-
Use the WIDTH property but you need to use something called TWIPS. 1440 twips is equal to 1 inch (2.25cm)
In your ON CLICK event of your button
[code=vb]
Me.txtBox.Width = 1440 'set your text box to 1 inch
Me.txtBox.Width = 2880 'set your text box to 2 inches
[/code]
cheers,
Originally posted by matrekz42This may seem extremely simple, but I want to have in VB a code that will change the width of a TextBox when a button in the form is clicked. How can I go about this?
Comment