[Mono-winforms-list] object reference not set to an instance of an object

Robert Jordan robertj at gmx.net
Mon Nov 1 13:02:00 EDT 2010


On 01.11.2010 16:56, Stifu wrote:
>
> Although you managed to work around your problem, if you think there is a bug
> in Mono, feel free to file a bug report.

ActiveForm is null when the application does not have focus, i.e.
it's not activated in Windows parlance. A click on the desktop
is enough to trigger ActiveForm == null.

It's probably related to his "ShowDialog() can loose focus when 
MDIContainer is present" issue.

Robert



More information about the Mono-winforms-list mailing list