[Mono-winforms-list] System.Windows.Forms.Screen.BitsPerPixel does not exist

Stephen Apostolopoulos stapostol at gmail.com
Wed Jan 23 09:19:34 EST 2008


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? 



More information about the Mono-winforms-list mailing list