Solved

How to keep the WebBrowser control from using resources (Dispose method for VB?)

Posted on 2008-10-01
1
934 Views
Last Modified: 2013-11-27
Dear Experts,

I use a webbrowser control in many VB and Access applications and they always use an awful lot of resources. I've recently learned of a Dispose method that can effectively shut the webbrowser up (so to speak). But I don't know the right syntax to use it in VB/VBA (if it can be used there at all).

So my question is two-fold:
- How to use the Dispose method in VB/VBA
- How to stop the webbrowser control from using all my resources

Thanks!
Keimpe Wiersma
0
Comment
Question by:keimpe
1 Comment
 
LVL 1

Accepted Solution

by:
keimpe earned 0 total points
ID: 22617368
Got it!

As usual, I found the solution within five minutes of posting my question... So remind me to post more questions ;-)

The trick is to put a Webbrowser1.Stop

In the Webbrowser1_DownloadComplete event.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now