I am making a homemade text editor and in it trying to make a control used to change the color of the text, on my tool bar I have a combo box in which I want to be able to load system colors into so that the user may change the color of the selected text. I can not figure out how to populate the combo box with these colors, I have tried variation of things I have found on the internet within my page_loaded event, but can not seem to get it to work. Hope you can help
Thanks Beef
You can use this code to populate a combo box with list of all colors
Declare a resource
Then use that resource in combo box like this
In order to use
sys:stringyou will have to includexmlns:sys="clr-namespace:System;assembly=mscorlib"