P
Paul Cheetham
Hi,
I have moved a fairly large project from VS2003 to VS2005, and now
trying to get it running.
It now compiles OK after minimal changes, but I am now getting a
NullReference Exception on the following line:
if (_Screen.ActiveForm == this)
Both _Screen.ActiveForm and the current form are descendants of
System.Windows.Forms.Form.
This worked perfectly well in VS2003, and I can't see why it won't work
here. _Screen.ActiveForm is null, but I am not trying to access any of
it's members, just check if it is the current form.
Can anybody point me in the right direction?
Thanks.
Paul Cheetham
I have moved a fairly large project from VS2003 to VS2005, and now
trying to get it running.
It now compiles OK after minimal changes, but I am now getting a
NullReference Exception on the following line:
if (_Screen.ActiveForm == this)
Both _Screen.ActiveForm and the current form are descendants of
System.Windows.Forms.Form.
This worked perfectly well in VS2003, and I can't see why it won't work
here. _Screen.ActiveForm is null, but I am not trying to access any of
it's members, just check if it is the current form.
Can anybody point me in the right direction?
Thanks.
Paul Cheetham