System.Windows.Forms.Form.ActiveForm always null

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I just finished an application, with a standard Form. Though the form is
Active (the property is true) the static System.Windows.Forms.Form.ActiveForm
is null all the time.
I tried to call Activate and Focus but the state for ActiveForm does not
change.

I need to know what the ActiveForm is because I need to disable some
keyboard activities depending on what form is displayed. I mostly am
intereseted in the Modal state.

Any idea why ActiveForm would always be NULL?

Thierry
 
if you are interested in the modal stat how do you launch your other forms?
form.show() or form.showdialog()?
 

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

Back
Top