I have a little problem with Visual Basic 2008 Express Edition...
when I create an application with, for example Web Browser window, when i press Maximize Button, the Web Browser window stays small, how can I maximize it either?...Thanks...=)
Copyright © 2024 QUIZLS.COM - All rights reserved.
Answers & Comments
Verified answer
Click the WebBrowser. In the properties menu make sure that docking is set to full.
Or you can program it:
WebBrowser1.Height = Me.Height
WebBrowser1.Width = Me.Width
Dane
Do coding on Me.Resize Event, which will change the size of web browser as the size of form change.
WebBrowser.Width= Me.ScaleWidth
WebBrowser.Height= Me.ScaleHeight
I think the browser window can only be maximised when the web page is initially opened and the options (size, menu, etc) are in the hyplerlink (or code generated hyperlink)
You can also do an anchor by clicking on the WebBrowser and going to its properties. Click the center square to fill the whole form with the browser.
Choose each control you want to be maximized with the form and go to properties window. There find the dock property and set it however you like. Happy programming!
Webbrowser1.Anchor = AnchorStyles.Bottom + AnchorStyles.Left + AnchorStyles.Right + AnchorStyles.Top