Results 1 to 5 of 5

Thread: Resizing

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Angry

    I have a form with a browser, a statusbar and a toolbar on it. I put in the form resize place the code that resizes the browser to the width of the program and the height of the program. But it's not resizing the browser. What could be holding back the browser from resizing!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    What code are you using to resize the browser?
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    Private Sub Form_Resize()
    Browser.Width = frmMain.Width - 120
    Browser.Height = frmMain.Height - 2300
    End Sub
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    But it works on form load, but it doesn't work on resize
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  5. #5
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Try using the ScaleWidth and ScaleHeight properties instead, as well as the Move method:

    Browser.Move 0,0,ScaleWidth,ScaleHeight

    Or something like that.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

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