Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7907413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:25:18+00:00 2026-06-03T11:25:18+00:00

I have form with web browser component, there is a button which triggers page

  • 0

I have form with web browser component, there is a button which triggers page reload, here is the code:

kiekmiestu = comboBox1.Text;
string nuoroda = "http://centrosokoladine.lt/PHP/generatorius.php?m=" + kiekmiestu;
webBrowser1.Navigate(nuoroda);

Lets say kiemiestu gets teks four, so the php generator generates 4 citys in random places of the map in each page refresh, my problem is that when I click the button second time WebBrowser1 seems nots navigating second time, couse page doesn’t change. Maybe it’s cache problems, o WebBrowser doesn’t navigate to same page if it’s already showed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:25:19+00:00Added an answer on June 3, 2026 at 11:25 am

    You can try webbrowser.refresh()
    MSDN:

    private void refreshButton_Click(object sender, EventArgs e)
    {
        // Skip refresh if about:blank is loaded to avoid removing
        // content specified by the DocumentText property.
        if (!webBrowser1.Url.Equals("about:blank"))
        {
            webBrowser1.Refresh();
        }
    }
    

    More about webbrowser.Refresh() and why navigate does not work:

    The WebBrowser control stores Web pages from recently visited sites in
    a cache on the local hard disk. Each page can specify an expiration
    date indicating how long it will remain in the cache. When the control
    navigates to a page, it saves time by displaying a cached version, if
    one is available, rather than downloading the page again. The Refresh
    method forces the WebBrowser control to reload the current page by
    downloading it, ensuring that the control displays the latest version.

    for clearing the wbbrowser controls cache consider this article: http://support.microsoft.com/kb/326201/de

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web browser I'm using in my VB.net form to which I
I have web form with a panel which has form elements in side it.
I have a web form where I have a textbox in which the user
I have a .NET windows form page and a WebBrowser component inside. I load
I have a hidden input on my form, and my JavaScript code writes there
i have two winforms loaded simultaneously first form with web browser and second form
I have a web browser control embedded in a form . Upon form load
I have a C# form with a web browser control on it. I am
I have a form with an embedded web browser control on it. I am
We have a win application that shows a web form in a web browser.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.