Disappearing forms

  • Thread starter Thread starter Jake Morath
  • Start date Start date
J

Jake Morath

Hi all,

I have an application that consists of a main form (not
mdi) and a number of dialog forms. When I open some of
the dialog forms they open for a few seconds and then
disappear. I can only get them to reappear by clicking on
the main form.

This weird behaviour doesn't occur with all my dialog
forms but it does happen with most of them.

THe only may I have been able to get around the problem so
far is to set the problem forms TopMost property to True
but this then sets those forms to sit on top of any other
programs that I try to run at the same time as my app -
very annoying.

I would appreciate any help or advise any of you can give.

TIA, Jake.
 
Does it always happen to certain dialogs, compared to never with other
dialogs?
Are you using Show() instead of ShowDialog()?
 
Yes it always happens to those forms that it happens to
and it never happens in those forms that is hasn't
happened to.

I am using ShowDialog to open the forms.
 
Back
Top