Click here to Skip to main content
15,906,558 members
Home / Discussions / C#
   

C#

 
GeneralRe: Indexers Pin
c242319-Aug-08 5:16
c242319-Aug-08 5:16 
GeneralRe: Indexers Pin
c242319-Aug-08 5:15
c242319-Aug-08 5:15 
QuestionDateTime control issue Pin
laziale18-Aug-08 4:37
laziale18-Aug-08 4:37 
AnswerRe: DateTime control issue Pin
vikas amin18-Aug-08 7:46
vikas amin18-Aug-08 7:46 
QuestionProblems with System colors and Brush Pin
vinay_K18-Aug-08 3:37
vinay_K18-Aug-08 3:37 
AnswerRe: Problems with System colors and Brush Pin
leppie18-Aug-08 4:05
leppie18-Aug-08 4:05 
GeneralRe: Problems with System colors and Brush Pin
vinay_K18-Aug-08 4:18
vinay_K18-Aug-08 4:18 
AnswerRe: Problems with System colors and Brush Pin
DaveyM6918-Aug-08 4:32
professionalDaveyM6918-Aug-08 4:32 
You have to use reflection (add using System.Reflection to top of file)
List<Color> webColours = new List<Color>();
foreach (PropertyInfo property in
    (typeof(Color)).GetProperties(BindingFlags.Public | BindingFlags.Static))
{
    Color colour = Color.FromName(property.Name);
    webColours.Add(colour);
    comboBox1.Items.Add(colour);
}

List<Color> systemColours = new List<Color>();
foreach (PropertyInfo property in
    (typeof(SystemColors)).GetProperties(BindingFlags.Public | BindingFlags.Static))
{
    Color colour = Color.FromName(property.Name);
    systemColours.Add(colour);
    comboBox2.Items.Add(colour);
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog)

GeneralRe: Problems with System colors and Brush Pin
vinay_K18-Aug-08 4:43
vinay_K18-Aug-08 4:43 
GeneralRe: Problems with System colors and Brush Pin
DaveyM6918-Aug-08 4:47
professionalDaveyM6918-Aug-08 4:47 
GeneralRe: Problems with System colors and Brush Pin
vinay_K18-Aug-08 4:54
vinay_K18-Aug-08 4:54 
GeneralRe: Problems with System colors and Brush Pin
DaveyM6918-Aug-08 5:02
professionalDaveyM6918-Aug-08 5:02 
GeneralRe: Problems with System colors and Brush Pin
vinay_K18-Aug-08 5:24
vinay_K18-Aug-08 5:24 
Questiondrag and drop functionality in webapplications Pin
prabhkar27218-Aug-08 3:19
prabhkar27218-Aug-08 3:19 
AnswerRe: drag and drop functionality in webapplications Pin
leppie18-Aug-08 4:04
leppie18-Aug-08 4:04 
GeneralRe: drag and drop functionality in webapplications Pin
Pete O'Hanlon18-Aug-08 9:00
mvePete O'Hanlon18-Aug-08 9:00 
QuestionChange the background colour of a single column header in a gridview Pin
But_Im_a_Lady18-Aug-08 1:55
But_Im_a_Lady18-Aug-08 1:55 
AnswerRe: Change the background colour of a single column header in a gridview Pin
Manas Bhardwaj18-Aug-08 2:13
professionalManas Bhardwaj18-Aug-08 2:13 
QuestionPossible to play video from FileStream? Pin
vigylant18-Aug-08 1:44
vigylant18-Aug-08 1:44 
AnswerRe: Possible to play video from FileStream? Pin
Christian Graus18-Aug-08 1:54
protectorChristian Graus18-Aug-08 1:54 
GeneralRe: Possible to play video from FileStream? Pin
vigylant18-Aug-08 1:58
vigylant18-Aug-08 1:58 
AnswerRe: Possible to play video from FileStream? Pin
DaveyM6918-Aug-08 2:48
professionalDaveyM6918-Aug-08 2:48 
QuestionASP Pin
ellllllllie18-Aug-08 1:40
ellllllllie18-Aug-08 1:40 
AnswerRe: ASP Pin
Christian Graus18-Aug-08 1:54
protectorChristian Graus18-Aug-08 1:54 
GeneralRe: ASP Pin
Pete O'Hanlon18-Aug-08 2:05
mvePete O'Hanlon18-Aug-08 2:05 

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.