-
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
-
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...;)