Wednesday, 12 September 2007

More VB Browser stuff.

I was tasked with adding a few more features to the browser. Mainly, adding a second form that I could use to control the webbrowser object in the first form. To do this, I added a new form and had it load up along with the first form in the first forms Form_load event.

Linking forms



To link up the two forms and control one form from the other, I used FormName.control.property.

This would semd values and events from one form to the other. This way, a "remote" form could be used to control my browser.


Another thing I did was remove the border from the second form and use the TransparencyKey property to round it off. That property uses a color shown in the form and makes in invisible.

---Click







No comments: