|
-
Oct 30th, 2000, 08:29 PM
#1
Thread Starter
Addicted Member
I have a textbox-like notepad, with vert. and hor. scroll bars. It starts up in a normal window state. If a user maximizes the window, the textbox and scroll bars stay in the same, (normal state), position and the bottom and right hand side of the window is then filled with an ugly, plain grey. How do I code my application to notice and resize the textbox and scrollbars to match the appropriate state of the window?
I appreciate ant time and effort,
Daniel Christie
-
Oct 30th, 2000, 10:04 PM
#2
Hyperactive Member
Have you tried in the section
somthing like this?
Code:
Private Sub Form_Resize()
'This is activated every time that you resize the form
'either by controlbox or mouse resize
'eg.
Textbox.Width=frmName.Width-120
TextBox.Height = frmName.Height - 120
ScrollBar1.Top = TextBox.Height + 150
ScrollBar2.Left = TextBox.Width + 150
End Sub
Saludos...
"Who Dares Wins" - "Quien se Arriesga Gana"
Mail me at: 
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
|