471,089 Members | 1,273 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

ShowInTaskBar WebBrowser Control Problem Still in 2.0

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
Me.Activate()
Me.Focus()
Me.Refresh()
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?

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Nov 21 '05 #1
3 1403
Hi

So far Whidbey issue is not officially supported, so the behavior may vary
after the finally release.
For Whidbey issue, you may try to report in the vs2005 forum.
http://lab.msdn.microsoft.com/vs2005/community/

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #2
Peter Huang [MSFT] wrote:
Hi

So far Whidbey issue is not officially supported, so the behavior may vary
after the finally release.
For Whidbey issue, you may try to report in the vs2005 forum.
http://lab.msdn.microsoft.com/vs2005/community/


Thanks Peter, I posted there.

--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Nov 21 '05 #3
Hi

You are welcomed!
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Alex Clark | last post: by
4 posts views Thread by Steve Richter | last post: by
2 posts views Thread by Scott Gravenhorst | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.