What I'm trying to do is:
I have an application that may occasionally run into a startup problem.
Instead of just letting the application evaporate I display a temporary form
indicating what the problem is. This temporary display form automatically
closes after say 10 seconds, closing the application with it. Everything
works great except that the new display form doesn't get highlighted as
desired, nevertheless it runs perfectly otherwise. In addition, it has a
control box 'close' button so that the user can click the 'X' to close the
display message without having to wait 10 seconds for it close
automatically.
What this accomplishes is that for a variety of 7x24 programs we will get a
message right away indicating the problem (ie: when we're trying to restart
the program). Otherwise we would have to open the Event Viewer and check it
out. I like the visual display method better, especially when you're in a
rush.
So what I do is display the temporary form (with an appropriate warning or
error message) and simultaneously disable the application's main form.
Actually the temporary form doesn't need to be owned by the application main
form. I changed it to simply use the "TopMost = TRUE", however it still
behaves the same way, whether owned or not.
Is there another way I can do what I want. It's actually acceptable as is; I
would just like to make it better.
Tom
"Sarika" <Sa****@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
Tom,
As far as my understanding goes, the purpose of the AddOwnedForm method is
to show the new owned form on top of the owner form. In other words the
Owned
form will always be the active form, unless you minimize or close the
Owner.
Why were you setting the Enabled property of the Owner to false?
Check out this URL
http://msdn.microsoft.com/library/de...dformtopic.asp
HTH