|
-
Oct 9th, 2005, 03:25 PM
#1
Thread Starter
Frenzied Member
Scalemode???
I searched the MSDN library and got so badly drowned in results, I soon gave up and searched the Visual Basic.net forum. Found no useful information...
And now my question:
I have a text box in a form that needs to be adjusted in size when the form is resized. In Visual Basic 5 (or 6) I would simply read the form's Width and Height properties and usually I would have the Scalemode property set to measure in characters for convenience. My code would normally look like this for example:
Private Sub Form_Resize()
Text1.Width = Form1.ScaleWidth - 2
Text1.Height = Form1.ScaleHeight - 2
End Sub
How can I do the same in Vb.net?
Note:
I'm beginning to think that one of Microsoft's design goals for Vb.net was to drive every programmer who tries to make the switch from Visual Basic 6 (or older versions) insane...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|