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()?
 
Back
Top