Lanc1988 Posted December 8, 2003 Posted December 8, 2003 I am using the Microsoft Web Browser dll to put web browsers on my forms. I was wondering how you can make them so that when the window it resized that it will get bigger with the window? Is there a property that you can turn to true or to false? Quote
HJB417 Posted December 8, 2003 Posted December 8, 2003 The AxWebBrowser has a Size property, I would register for the Resize event of the control that contains the AxWebBrowser. Inside the Size property, you will know the what the new Width and Height is of the parent control and make up some formula to determine what the Height and Width aka Size of the AxWebBrowser should be. Quote
Lanc1988 Posted December 9, 2003 Author Posted December 9, 2003 What do you mean, i'm kinda a beginner at vb.net. Only been working with it for about 2 weeks. Quote
HJB417 Posted December 10, 2003 Posted December 10, 2003 OK, well, with forms, when your resize them, they send a message to any listenters that the form has been resized. The messages are events and you tell the form what method(s) [the listeners] u want invoked/called when the event is raised. Unfortunately, I don't know vb.net so I can't show you any examples in that but I can post examples in c# or c++ if that will help. Quote
Lanc1988 Posted December 10, 2003 Author Posted December 10, 2003 Could someone who knows vb.net post an example? Quote
*Gurus* divil Posted December 10, 2003 *Gurus* Posted December 10, 2003 Just set its Dock property to Fill, and it will automatically resize to occupy the whole of its container. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Lanc1988 Posted December 10, 2003 Author Posted December 10, 2003 Oh, i wish someone would have told me that sooner.. Thx. Quote
Malfunction Posted December 11, 2003 Posted December 11, 2003 I've nothing to contribute to this matter but another question: What can this browser do? I used to work with the ActiveX Browser Control but found it was lacking some important features e.g. I couldn't retrieve the current URL etc. Where can I find information (features) about the browser you were talking about? P.S. I need some sort of Browser that let's me add some functions to trace the path and times spend on visited websites so I can evaluate the navigation of participants directly. Right now I depend on forms they fill out after visiting the site. Quote Debug me...
zachman123 Posted December 24, 2003 Posted December 24, 2003 Malfunction: I's the same browser.. Microsoft Web Browser, ActiveX Browser, axWebBrowser, etc. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.