|
-
Mar 25th, 2004, 09:57 PM
#1
Thread Starter
Member
might be easy
Hello there!
The problem i have might be simple, but i have given up looking.
I have a form and a textbox inside it. when i run the form and resize the form i want the textbox to resize 2. I tried form resize n this is the code i have
Private Sub frmTestPad_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize
txtNewDocument.Top = 100
txtNewDocument.Left = 100
txtNewDocument.Width = frmTestPad.ActiveForm.Width - 300
txtNewDocument.Height = frmTestPad.ActiveForm.Height - 600
End Sub
and this is the error i get-"Object reference not set to an instance of an object"
Thanks in advance..
Last edited by dawgfather; Mar 25th, 2004 at 10:16 PM.
-
Mar 25th, 2004, 10:18 PM
#2
Sleep mode
First , try this setting for the textbox :
Anchor : Top, Left, Right
-
Mar 25th, 2004, 10:19 PM
#3
Frenzied Member
Also, you'll need to set the "multililne" property to "true"
-
Mar 26th, 2004, 09:03 AM
#4
Thread Starter
Member
cool thanks guys it works....
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
|