Home All Groups Group Topic Archive Search About

Simple Question about two forms

Author
18 May 2006 11:13 AM
Cylix
There are 2 forms, named as form1 and form2
form1_onLoad
dim a as new form2
a.showDialog(me)

when the form2 closed(dispose), the focus will back to form1.

The case is, after form2 dispose, the screen will refresh shortly.
I have tried a lot of time, it seems that my application will minisize
in a shorttime and then show the form1.

How can I remove the "refresh" ?

Author
18 May 2006 1:23 PM
Chris Dunaway
Can you post a complete program that demonstrates the problem.  When
form a is closed, form1, should not minimize.
Author
19 May 2006 1:15 AM
Cylix
form2.Owner = form1
form2.ShowDialog()
txtDescription.Text = frmKey.selectedKeywords
txtDescription.Focus()