Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

VS 2010 Help me to turn my windows form with webbrowser control into a modular vb app

$
0
0
Ok so the program i use to auto-administer my forum is working great thanks to all the help I've recieved here on vbforums. Thanks again to everyone that helped.
Now here's something I've been wanting to do ever since I saw it mentioned about 6 months ago. I would like to turn my simple windows form with (1 webbrowser control) on it...into a modular application.
So when my program is using the WebBrowser control it stays loaded on the form & when I'm done with it, i can kill (just that control itself), thus releasing the RAM it's using. And call on it again later on via a schedule/timer inside my application.
I realize that most of you would simply hide the webbrowser control (or any other for that matter) but when you've surfed to 50 different forum members pages to review their 'about me' etc. it's taken up about 160-350mb of ram. So It's time to make the webbrowser control part of my program a module that I can close down / bring back up when needed.

So what are my options here. How do you load part of your program as a module? And how can you make sure you completely get rid of it when you close that particular module. I'm sure several of you have figured out how to get rid of a high-cpu / high-ram part of your application before (when its no longer needed for your programs continued function, until a later time) without shutting down the entire application right? I would assume it's quite a bit like 'tabs' in firefox or IE. Once you've loaded 50 videos on youtube and you close that tab...you're web browser sure does speed right back up!

Viewing all articles
Browse latest Browse all 42220

Trending Articles