Solved

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

Posted on 2008-10-01
1
968 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

820 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