Disappearing Status Bar

N

NWdotnet

Haven't been able to get to the root this odd problem. Perhaps someone
here can suggest something that will get me on the right trail?

Its probably the same issue Alex reported in 2003 but had no response
(http://groups.google.com/groups?hl=...0bar%2C%20notify%20icon&hl=en&lr=&sa=N&tab=wg)...

The issue:
[1] Windows application with a status bar.
[2] Status bar appears fine when application is originally launched.
[3] After minimizing the app to the system tray, then restoring it
using the notify icon (double click the tray icon) >> The app restores
*without* the status bar. (Poof - its gone!)

So far I've found/tried the following without success:
[1] Refreshing the status bar (statbar.Refresh()) in the app OnResize
override (Protected Overrides Sub OnResize used to hide the app on
minimize).
[2] Checking to see if the status bar is created (statbar.Created)
when the app Resizes >> It is, but still nothing is seen.
[3] Changing status bar colors in the OnResize override to ensure the
status bar isn't simply lurking but hidden.

The status bar is initialized in the windows generated code and two
buttons are added to the control here as well. This functions properly
with the exception of the statusbar control (and its 2 buttons)
disappearing when the application is restored.

Any help or pointers to potential help would be greatly appreciated.
Thanks much!
 

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