|
-
Sep 18th, 2000, 04:42 AM
#1
Thread Starter
Fanatic Member
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

-
Sep 18th, 2000, 05:01 AM
#2
Frenzied Member
What code are you using to resize the browser?
-
Sep 18th, 2000, 05:03 AM
#3
Thread Starter
Fanatic Member
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

-
Sep 18th, 2000, 05:04 AM
#4
Thread Starter
Fanatic Member
But it works on form load, but it doesn't work on resize
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Sep 18th, 2000, 08:04 AM
#5
Frenzied Member
Try using the ScaleWidth and ScaleHeight properties instead, as well as the Move method:
Browser.Move 0,0,ScaleWidth,ScaleHeight
Or something like that.
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
|