Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Mon, 17 Mar 2008 08:43:02 -0700,    group: microsoft.public.dotnet.framework.windowsforms.controls        back       


DataGridView BackgroundColor property - Medical Monitor grayscale   
We have a PACS Monitor that only displays gray scale.

Our application is written in C#, using .Net 2.0

All controls when displayed in the gray scale monitor, display ok. When the 
BackgroundColor property of DataGridView is set to anything other than White, 
Red, or Green, the DataGridView displays the color as Black in the gray scale 
monitor.

 

I have a feeling it is related to the fact that the BackgroundColor property 
is of type Color( int32 Red , int32 Blue , int32 Green ). The 32-bit values 
only allow for 8-bit values (up to 255). I think that when casting the 
values, it truncates the lower/upper bits and displays either white or black 
(all 1’s or all 0’s ) in the grid

Has anybody run into this problem?
date: Mon, 17 Mar 2008 08:43:02 -0700   author:   Andy Fandel Andy

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us