Results 1 to 2 of 2

Thread: my appologies if this is a double post...I am not sure if my previous post was posted

  1. #1

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245
    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

  2. #2
    Hyperactive Member D12Bit's Avatar
    Join Date
    Oct 2000
    Location
    Guatemala
    Posts
    373

    Wink

    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
  •  



Click Here to Expand Forum to Full Width