Solved

form disappearing

Posted on 2008-06-25
7
166 Views
Last Modified: 2013-11-07
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?
0
Comment
Question by:sirbounty
  • 3
  • 2
  • 2
7 Comments
 
LVL 67

Author Comment

by:sirbounty
ID: 21865905
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
 
LVL 3

Assisted Solution

by:GHCS_Mark
GHCS_Mark earned 200 total points
ID: 21867056
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
 
LVL 67

Author Comment

by:sirbounty
ID: 21867662
Neither of those hit after the form is loaded (good thinking though).
I even tried the min/max events, but nothing there either...
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 9

Assisted Solution

by:Pacman
Pacman earned 300 total points
ID: 21873166
Where is your form exactly located ?
Check following:

o Screen Position
o owner
o parent

is your form BEHIND another window (Z-order) ?
0
 
LVL 3

Assisted Solution

by:GHCS_Mark
GHCS_Mark earned 200 total points
ID: 21873175
Try setting a timer to reapply the topmost attribute.  It may be that the Taskbar is putting itself over the top.
0
 
LVL 67

Author Comment

by:sirbounty
ID: 21873626
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
 
LVL 9

Accepted Solution

by:
Pacman earned 300 total points
ID: 21881753
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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now