Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2008-10-01
1
Medium Priority
?
995 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

610 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