PDA

Click to See Complete Forum and Search --> : my appologies if this is a double post...I am not sure if my previous post was posted


Daniel_Christie
Oct 30th, 2000, 07:29 PM
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

D12Bit
Oct 30th, 2000, 09:04 PM
Have you tried in the section
somthing like this?

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