Simple Question about two forms

C

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" ?
 
C

Chris Dunaway

Can you post a complete program that demonstrates the problem. When
form a is closed, form1, should not minimize.
 
C

Cylix

form2.Owner = form1
form2.ShowDialog()
txtDescription.Text = frmKey.selectedKeywords
txtDescription.Focus()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top