Howdy, Stranger!

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

Categories

WebBrowser Control Automation

Isip2Isip2 Member Posts: 16
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

  • PsightoplazmPsightoplazm Member Posts: 332 ✭✭
    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.