[Mono-winforms-list] System.Windows.Forms.Screen.BitsPerPixel does not exist
Jonathan Pobst
monkey at jpobst.com
Wed Jan 23 11:33:35 EST 2008
This property was added last week. It will allow your code to
compile/run, however it is stubbed to always return 32.
It is currently available in SVN, and will be available in 1.2.7.
Jonathan
Stephen Apostolopoulos wrote:
> Using Mono 1.2.6 from the tarball on Ubuntu 7.10 x86_64, the following code
> does not compile:
>
> class Bug
> {
> public static void Main()
> {
> int bpp = System.Windows.Forms.Screen.BitsPerPixel;
> }
> }
>
> $ gmcs bpp.cs /reference:System.Windows.Forms.dll
> bpp.cs(5,47): error CS0117: `System.Windows.Forms.Screen' does not contain a
> definition for `BitsPerPixel'
> /usr/local/lib/mono/gac/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
> (Location of the symbol related to previous error)
> Compilation failed: 1 error(s), 0 warnings
>
> Known bug? Are there plans to support this property in Mono 1.2.7? Or at
> least add it with a "throw new NotImplementedException()", so that code
> using it can at least compile?
>
> _______________________________________________
> Mono-winforms-list maillist - Mono-winforms-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
>
More information about the Mono-winforms-list
mailing list