Help with form focus

  • Thread starter Thread starter steve
  • Start date Start date
S

steve

Hi,

I know how to create an instance of a new form , etc. However, i don't seem
to be able to find a method or set a property that, once a new form is
created, no other form can have input until the (latest) form is closed.

TIA
-steve
 
Dim f as new MyForm
If f.ShowDialog(Me) = DialogResult.OK Then
' do something
End If
f.Dispose()

Greg
 
Thanx Greg !
interesting !.... but i don't understand the idea behind it. Goota do some
reading in Help.
Thx again!

-steve
 
steve said:
Hi,

I know how to create an instance of a new form , etc. However, i don't seem
to be able to find a method or set a property that, once a new form is
created, no other form can have input until the (latest) form is closed.

I believe you use form1.ShowDialog() instead of form1.Show().
 

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


Back
Top