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

Jonathan Pobst monkey at jpobst.com
Wed Jan 23 12:13:17 EST 2008


If you write some actual detection code and would like to contribute it 
(MIT/X11), we would love to have it.  It looked pretty difficult to 
implement correctly when I looked at it, and didn't look used enough to 
spend the effort on it.  But we would love to have it implemented.  :)

Jonathan


Stephen Apostolopoulos wrote:
> Glad to hear it's being worked on :)
> 
> Is someone working on the actual detection code, or should I donate mine 
> once it's ready? (I'll have to do this anyway, because upgrading to 
> 1.2.7 is not really an option - Ubuntu 8.04 will ship with 1.2.6)
> 
> 
> ----- Original Message ----- From: "Jonathan Pobst" <monkey at jpobst.com>
> To: "Stephen Apostolopoulos" <stapostol at gmail.com>
> Cc: <mono-winforms-list at lists.ximian.com>
> Sent: Wednesday, January 23, 2008 6:33 PM
> Subject: Re: [Mono-winforms-list] 
> System.Windows.Forms.Screen.BitsPerPixel does not exist
> 
> 
>> 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