?
Solved

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

Posted on 2008-10-01
1
Medium Priority
?
986 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

765 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