Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. C# WebBrowser control setting folder views window blank until right-click [modified]

C# WebBrowser control setting folder views window blank until right-click [modified]

Scheduled Pinned Locked Moved C#
csharpquestion
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wheels012
    wrote on last edited by
    #1

    Good morning. I was wondering if anyone has come across this anomoly. I have code to populate a WebBrowser control based on the folder address (e.g. C:\). This code works well and is as follows:

    private void cboFolder_SelectedIndexChanged(object sender, EventArgs e)
    {
    if (cboFolder.SelectedIndex != -1)
    {
    Cursor.Current = Cursors.WaitCursor;
    SetProgressBarMarquee();
    lblLoading.Visible = true;
    progressBar1.Visible = true;
    Application.DoEvents();
    this.viewToolStripMenuItem.Enabled = true;
    cboSP_Site.SelectedIndex = -1;
    cboWS.SelectedIndex = -1;
    txtAddress.Text = cboFolder.SelectedValue.ToString();
    WebBrowser1.Url = new Uri(cboFolder.SelectedValue.ToString());
    }
    }

    private void WebBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
    {
    SetProgressBarContinuous();
    lblLoading.Visible = false;
    progressBar1.Visible = false;
    Cursor.Current = Cursors.Default;
    }

    I used some code to set up the different folder views from the view menu. Everything seems to work well, but when I try to switch to details, the web browser window go blank until I right click and then it appears. Also periodically, the folder icons will not show up. Any suggestions? Thank you, WHEELS

    modified on Tuesday, November 10, 2009 8:01 AM

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups