Web browser control & non-cache refresh

Posted on 2006-03-20
Last Modified: 2008-03-10
I have a project with the web browser control that has a refresh button.  When that button is pressed I want do do the equivalent of Ctrl+F5.  I have tried the .Navigate(url) and the .Navigate2(url) but both use the cache.  How can I accomplish this behavior?
Question by:SkipFire
    LVL 85

    Accepted Solution

    Try Refresh2():

    Option Explicit

    Private Const REFRESH_COMPLETELY = 3

    Private Sub Command1_Click()
        WebBrowser1.Refresh2 REFRESH_COMPLETELY
    End Sub

    LVL 4

    Author Comment

    Thanks, that did it!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
    Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    779 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

    13 Experts available now in Live!

    Get 1:1 Help Now