Click here to Skip to main content
15,911,890 members
Home / Discussions / C#
   

C#

 
Questionc# live video Pin
omer erakman8-Jan-09 6:50
omer erakman8-Jan-09 6:50 
AnswerRe: c# live video Pin
EliottA8-Jan-09 7:13
EliottA8-Jan-09 7:13 
QuestionColors and Color Pin
mark_w_8-Jan-09 6:03
mark_w_8-Jan-09 6:03 
AnswerRe: Colors and Color Pin
musefan8-Jan-09 6:08
musefan8-Jan-09 6:08 
GeneralRe: Colors and Color Pin
mark_w_8-Jan-09 6:14
mark_w_8-Jan-09 6:14 
GeneralRe: Colors and Color [modified] Pin
musefan8-Jan-09 6:19
musefan8-Jan-09 6:19 
GeneralRe: Colors and Color Pin
mark_w_8-Jan-09 6:22
mark_w_8-Jan-09 6:22 
AnswerRe: Colors and Color Pin
DaveyM698-Jan-09 6:22
professionalDaveyM698-Jan-09 6:22 
You could examine the source of the Color struct.

A very simple implementation (loads missed out!) using the proper spelling...
public struct Colour
 {
     private byte m_R;
     private byte m_G;
     private byte m_B;

     public Colour(byte r, byte g, byte b)
     {
         m_R = r;
         m_G = g;
         m_B = b;
     }

     public byte R { get { return m_R; } }
     public byte G { get { return m_G; } }
     public byte B { get { return m_B; } }

     public static Colour White
     {
         get { return new Colour(255, 255, 255); }
     }
     public static Colour Black
     {
         get { return new Colour(0, 0, 0); }
     }
 }


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

GeneralRe: Colors and Color Pin
mark_w_8-Jan-09 6:25
mark_w_8-Jan-09 6:25 
GeneralRe: Colors and Color Pin
musefan8-Jan-09 6:26
musefan8-Jan-09 6:26 
QuestionSource Control Pin
CodingYoshi8-Jan-09 5:48
CodingYoshi8-Jan-09 5:48 
AnswerRe: Source Control Pin
Lev Danielyan8-Jan-09 5:52
Lev Danielyan8-Jan-09 5:52 
AnswerRe: Source Control Pin
DaveyM698-Jan-09 5:54
professionalDaveyM698-Jan-09 5:54 
AnswerRe: Source Control Pin
User 66588-Jan-09 6:24
User 66588-Jan-09 6:24 
QuestionCreating a label without absolutely no padding Pin
version2_18-Jan-09 5:40
version2_18-Jan-09 5:40 
AnswerRe: Creating a label without absolutely no padding Pin
Lev Danielyan8-Jan-09 5:44
Lev Danielyan8-Jan-09 5:44 
AnswerRe: Creating a label without absolutely no padding Pin
Not Active8-Jan-09 5:56
mentorNot Active8-Jan-09 5:56 
QuestionError converting data type nvarchar to datetime, any suggestion Pin
suni_dotnet8-Jan-09 4:52
suni_dotnet8-Jan-09 4:52 
AnswerRe: Error converting data type nvarchar to datetime, any suggestion Pin
Ashfield8-Jan-09 5:03
Ashfield8-Jan-09 5:03 
GeneralRe: Error converting data type nvarchar to datetime, any suggestion Pin
suni_dotnet8-Jan-09 5:19
suni_dotnet8-Jan-09 5:19 
AnswerRe: Error converting data type nvarchar to datetime, any suggestion Pin
Not Active8-Jan-09 5:26
mentorNot Active8-Jan-09 5:26 
GeneralRe: Error converting data type nvarchar to datetime, any suggestion Pin
suni_dotnet8-Jan-09 6:12
suni_dotnet8-Jan-09 6:12 
GeneralRe: Error converting data type nvarchar to datetime, any suggestion Pin
Not Active8-Jan-09 6:24
mentorNot Active8-Jan-09 6:24 
GeneralRe: Error converting data type nvarchar to datetime, any suggestion Pin
suni_dotnet8-Jan-09 6:44
suni_dotnet8-Jan-09 6:44 
GeneralRe: Error converting data type nvarchar to datetime, any suggestion Pin
Not Active8-Jan-09 6:55
mentorNot Active8-Jan-09 6:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.