WebBrowser Control Automation

Hi guys!

I'm new to network programming so i'm sorry if this question is a little noobish. I started using the WebBrowser Control in c# and so far it has done my purpose. But I want to know if there is a way to utilize this same control (so I won't change my code) without the visual display. Is it possible to "hide" the control but letting it stay active? Or is there a usable base class where the WebBrowser inherits its properties and methods?

It turns our, simply setting the visible property to false disables the control as well. Manually instantiating the control using the default constructor also doesn't seem to work. Am I missing something here?

Thank you guys!

Comments

  • you can just -not- add the WebBrowser() object to a form...

    [code]
    var proceed = false;
    var web = new WebBrowser();
    web.DocumentCompleted += delegate { proceed = true; };
    web.Navigate("http://www.google.com");

    while (!proceed)
    Application.DoEvents();
    [/code]

    ><//~Psightoplasm`~
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion