form disappearing

I'd asked how to drop some data beneath the start button (http://www.experts-exchange.com/Q_23508748.html).
It works, at least for the first few passes.
However, without warning, at some point after the form's been loaded, I can look down there and it's simply gone...no data being displayed at all...

me.Visible is true,
windowstate is normal
Height is 20/Width is 90 (as expected)
TopLevel is true
StartPos is manual

Changing the color doesn't seem to register.
What can I check?  Any idea why it's MIA?
LVL 67
sirbountyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
PacmanConnect With a Mentor Commented:
Does your form disappear completely or is it only behind some other window (taskbar for example) ?
To test it, you can position your form so that I overlaps with the taskbar but partially visible.

Another helpful test:

Take the Spy-Tool and watch the Properties (windows style are interesting) of your form.
a) styles when it's visible
b) styles when it's invisible

With spy you can also get the owner / parent of your form.
0
 
sirbountyAuthor Commented:
I can duplicate it if I hit WindowsKey+D (shrink to desktop).  It doesn't disappear the 'first' time, when everything is minimized, but if I hit it again, to restore everything to it's prior state, the form disappears...
0
 
GHCS_MarkConnect With a Mentor Commented:
check whether the forms state has been changed to minimized.  maybe add code to the form.resize or form.visiblechanged events to reaffirm what position you expect yourself to be in, but don't forget to check for recursive calls if you do this.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
sirbountyAuthor Commented:
Neither of those hit after the form is loaded (good thinking though).
I even tried the min/max events, but nothing there either...
0
 
PacmanConnect With a Mentor Commented:
Where is your form exactly located ?
Check following:

o Screen Position
o owner
o parent

is your form BEHIND another window (Z-order) ?
0
 
GHCS_MarkConnect With a Mentor Commented:
Try setting a timer to reapply the topmost attribute.  It may be that the Taskbar is putting itself over the top.
0
 
sirbountyAuthor Commented:
Screen position is correct.
Not sure where you're going with owner/parent, but a quick search on z-order brought up the bringtofront method for the form, so I tossed that in there for good measure.

Already have the timer, so I added the topmost=true in there as well.

Something seems to have worked at any rate - my attempt to duplicate it still causes it to disappear, but it's finally reappearing when the timer fires.

I'll play with it to narrow it down and continue testing just to be sure.
Thanx gang!
0
All Courses

From novice to tech pro — start learning today.