Sidebar Form Inheritance bug, Browser Control problem

D

Donald Adams

I have a form that I called frmPlugin with some basic common methods that
all plugins I create inherit. I also have a more advanced,
frmPluginTaskDoc(inherits frmPlugin), that plugins can inherit for a split:
Task/Document interface. Doing this enables the frmMain to communicate with
the plugins.
Now if hide these forms (I still want them to be running) and remove the
icon from the taskbar, then I get ghost icons in the taskbar. In other
words, I see icons and no names for the forms.
Here is the code:
private void frmMain_Closing(object sender,
System.ComponentModel.CancelEventArgs e)
{
if(_isJustHide)
{
this.ShowInTaskbar=false;
this.Hide();
e.Cancel=true;
}
}
public void ShowForm()
{
this.Show();
this.WindowState=FormWindowState.Normal;
this.ShowInTaskbar=true;
}

_isJustHide=false; // when I really want to close.

My other problem is, though the form shows, my WebBrowser Object is blank
white and the I can't see any contents. I did a test and the contents are
still there, just can't see it.

So how can I get rid of the taskbar ghost icons?
And how can I get the browser control to display?

I'm using VS.Net 2003 on W2003 both are Enterprise versions. I'm very
thankful that the BeforeNavigate2 event is now working with VS.Net 2003.

Thanks in Advance,

Donald Adams
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top