.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > Contracts for Windows.form
 

Contracts for Windows.form

Hi,

There shoud be an ensure not null on:
System.Windows.Forms.Screen.PrimaryScreen

Well I'm not entry sure, since i already experienced scenarios, where it is null, witch leeds to Nullreference-Exceptions in the Windows Forms Code
Alexander Wurzinger
Hi Alexander,
looking at the implementation, PrimaryScreen can return null, if it does not exist an i such that AllScreen[i].primary holds.
Is this the case you experienced?

Thanks,
f
Francesco Logozzo
Hi Alexander,
looking at the implementation, PrimaryScreen can return null, if it does not exist an i such that AllScreen[i].primary holds.
Is this the case you experienced?

Thanks,
f
Francesco Logozzo

You can use google to search for other answers

Custom Search

More Threads

• Javascript error out of memory while processing array of elements having 84275 elements.
• hidden controls
• OnKeyPress
• ECMA-327 interpreter for Compact Framework
• window.showModalDialog problem
• How to specify referrer for a page header in html or jscript?
• save text on client machine by js
• Script Block and Script Block Server
• Assembly attribute in JScript
• video embedding