B
Bob Rock
Hi Bob. I've been looking through these posts and trying a few things
Mark, if you read my previous post, you'll see that I found the correct
solution to this problem.
At this end of this thread I only want to say that I'm amazed by how
difficult is doing something that should be so simple as to hide a form.
Bob Rock
myself. It is possible to hide the form in several of its events (such as
it's paint or visiblechanged) but that only works after the form is
displayed (however briefly) plus you then need to handle these events being
raised by another scenario other that the first time it is shown.
The solution is actually quite simple. Dont hide the form......
....no seriously.... all you need to do is (and this can be done at design
time) set the
form's WindowState property to FormWindowState.Minimized;
and the ShownInTaskbar property to false;
when you want the form to reappear the instance must have these properties
set to FormWindowState.Normal; (and if you want) ShownInTaskbar property to
true;
I do have reservations about exactly what you are trying to do and whether
what you are doing is really the best way to go about it, however Ive tried
the above and it works a treat.
Mark, if you read my previous post, you'll see that I found the correct
solution to this problem.
At this end of this thread I only want to say that I'm amazed by how
difficult is doing something that should be so simple as to hide a form.
Bob Rock