Re: Color data type

Chris Anderson <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
Color.Empty


> -----Original Message-----
> From: Discussion forum for developers using Windows Forms to build
apps
> and controls [mailto:[email protected]] On Behalf Of
> Peter Osucha
> Sent: 01 May 2007 20:16
> To: [email protected]
> Subject: [DOTNET-WINFORMS] Color data type
> 
> Hello,
> 
> 
> 
> So it seems that the Color data type is a value type (which surprises
> me).
> 
> 
> 
> I would like to be able to set a Color variable to null (essentially,
> the variable would indicate that no color has been assigned).  Is
there
> a way to do this?  I can't set the color to 0 (= Black).  I guess I
> could choose '-1' - I don't think that represents a system color.
> However, perhaps there is a better way?
> 
> 
> 
> Peter
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.