Modal form

  • Thread starter Thread starter boble
  • Start date Start date
B

boble

This must be a trivial problem.

I have a form that I display using ShowDialog method. The
problem is that it doesnt go off nicely when I want to get
rid of it (by setting Visible property to false or calling
Dispose method). It causes a lot of "flickering" on the
screen. The form underneath it loses and gets back the
focus and it is very distracting ...

If one closes the form using the windows close button (top
right corner) then it disappears "nicely".

I must be missing something here ...

Any suggestions would be appreciated!

Thanx All!
 
Hmmm, try calling myForm.Close() instead of Dispose and see what happens.
Are you doing any other processing other than setting myForm.Visible =
false? I'd try eliminating that code and see if you get the same behavior.
Tom
 
fixed!

Thank you very much!

-----Original Message-----
Hmmm, try calling myForm.Close() instead of Dispose and see what happens.
Are you doing any other processing other than setting myForm.Visible =
false? I'd try eliminating that code and see if you get the same behavior.
Tom





.
 
Back
Top