VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Resizes a control i.e textbox when a form is resized

by Robin Hickmott (5 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Tue 18th January 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Resizes a control i.e textbox when a form is resized

Rate Resizes a control i.e textbox when a form is resized




Private Sub Form_Resize()
Text1.Height = Form1.Height - 1000
Text1.Width = Form1.Width - 1000

'To leave gaps try using ( = Form1.Height - x)
'or for those who dont like maths x = a number such as 1000
End Sub


Download this snippet    Add to My Saved Code

Resizes a control i.e textbox when a form is resized Comments

No comments have been posted about Resizes a control i.e textbox when a form is resized. Why not be the first to post a comment about Resizes a control i.e textbox when a form is resized.

Post your comment

Subject:
Message:
0/1000 characters