.NET General

Moderators: None (Apply to moderate this forum)
Number of threads: 749
Number of posts: 1301

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
WebBrowser Control Automation Posted by Isip2 on 16 Apr 2009 at 11:10 PM
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!
Report
Re: WebBrowser Control Automation Posted by Psightoplazm on 24 Apr 2009 at 2:28 PM
you can just -not- add the WebBrowser() object to a form...

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

            while (!proceed)
                Application.DoEvents();


></\/~Psightoplasm`~



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.