Lenin82 Posted July 2, 2003 Posted July 2, 2003 Hi, am very new to programming in general, I'm just wondering, how can I resize controls in my form, like a textbox or a drop down menu, or anything else for that matter. Thanx For any infi that may be given :) Quote
Leaders dynamic_sysop Posted July 2, 2003 Leaders Posted July 2, 2003 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.Size = New Size(10000, 10) '///Width then Height End Sub that would make a very long textbox. Quote
Lenin82 Posted July 2, 2003 Author Posted July 2, 2003 hmmm oops, sorry bout that I didnt make myself clear. I think I forgot one important part, I wanted to resize it as the actual form resized, like when you maximize the form, have the text boxes resize as well, but thanx for the info dynamic, that will prolly come in handy as well :) Quote
Administrators PlausiblyDamp Posted July 3, 2003 Administrators Posted July 3, 2003 In the forms designer if you select a control and look for the properties Anchor and Dock - not the most powerful but can make resizing logic quite easy. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.