ShowInTaskBar WebBrowser Control Problem Still in 2.0


Mitchell Vincent

I can't find the post now but several months back I posted a problem I
was having using the WebBrowser control when trying to have a systray
icon pop back up a window that hadn't been shown in the taskbar. I was
doing ShowInTaskbar = False - and someone here told me that wouldn't
work because the browser control was ActiveX still and that
ShowIOnTaskbar = false actually destroyed the window. So, I tried 2.0
Beta and the same thing happens with their "native" control.

To reproduce :

Create a form with a web browser control on it (and a notify icon) -
anywhere will do.

Add these :

Private Sub NotifyIcon1_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles NotifyIcon1.Click
Me.Visible = True
Me.ShowInTaskbar = True
End Sub

Private Sub frmMain_Resize(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Resize
If Me.WindowState = FormWindowState.Minimized Then
Me.AxWebBrowser1.Visible = False
Me.AxWebBrowser2.Visible = False
Me.ShowInTaskbar = False
End If
End Sub

You'll notice when you minimize the window goes away and you'll have
your notify icon in the systray. Double click on the systray icon and
watch the web browser control disappear. It does the same with .NET
framework 1.1 in Visual Studio 2005 and .NET 2.0 in Visual Studio 2005.

Where can I report this problem?




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