C# Programming
11-06-2009, 04:11 PM
Good afternoon. I have the following code:
private void cboFolder_SelectedIndexChanged(object sender, EventArgs e)
{
if (cboFolder.SelectedValue != null)//&& cboFolder.SelectedValue.ToString() != "-1")
{
Cursor.Current = Cursors.WaitCursor;
SetProgressBarMarquee();
lblLoading.Visible = true;
progressBar1.Visible = true;
this.viewToolStripMenuItem.Enabled = true;
cboSP_Site.SelectedIndex = -1;
cboWS.SelectedIndex = -1;
txtAddress.Text = cboFolder.SelectedValue.ToString();
WebBrowser1.Focus();
WebBrowser1.Url = new Uri(cboFolder.SelectedValue.ToString());
SendKeys.Send("+{F10}(VD)");
}
}
private void SetProgressBarMarquee()
{
this.progressBar1.Style = ProgressBarStyle.Marquee;
this.progressBar1.MarqueeAnimationSpeed = 50;
}
When I select one of the items in the combo box the folders display in detail format, but others do not. On the second selection for example temp folder it displays as details.
Any suggestions? WHEELS
private void cboFolder_SelectedIndexChanged(object sender, EventArgs e)
{
if (cboFolder.SelectedValue != null)//&& cboFolder.SelectedValue.ToString() != "-1")
{
Cursor.Current = Cursors.WaitCursor;
SetProgressBarMarquee();
lblLoading.Visible = true;
progressBar1.Visible = true;
this.viewToolStripMenuItem.Enabled = true;
cboSP_Site.SelectedIndex = -1;
cboWS.SelectedIndex = -1;
txtAddress.Text = cboFolder.SelectedValue.ToString();
WebBrowser1.Focus();
WebBrowser1.Url = new Uri(cboFolder.SelectedValue.ToString());
SendKeys.Send("+{F10}(VD)");
}
}
private void SetProgressBarMarquee()
{
this.progressBar1.Style = ProgressBarStyle.Marquee;
this.progressBar1.MarqueeAnimationSpeed = 50;
}
When I select one of the items in the combo box the folders display in detail format, but others do not. On the second selection for example temp folder it displays as details.
Any suggestions? WHEELS