Click here to Skip to main content
15,887,827 members
Home / Discussions / C#
   

C#

 
GeneralRe: Design database....... Pin
god4k3-May-04 1:02
god4k3-May-04 1:02 
GeneralRe: Design database....... Pin
Colin Angus Mackay3-May-04 1:28
Colin Angus Mackay3-May-04 1:28 
GeneralRe: Design database....... Pin
god4k3-May-04 17:19
god4k3-May-04 17:19 
Generalstatus bar color Pin
Dpriya2-May-04 20:56
Dpriya2-May-04 20:56 
GeneralRe: status bar color Pin
Heath Stewart3-May-04 2:00
protectorHeath Stewart3-May-04 2:00 
GeneralStoring Color To database Pin
sreejith ss nair2-May-04 20:49
sreejith ss nair2-May-04 20:49 
GeneralRe: Storing Color To database Pin
Colin Angus Mackay2-May-04 21:28
Colin Angus Mackay2-May-04 21:28 
GeneralRe: Storing Color To database Pin
Heath Stewart3-May-04 1:58
protectorHeath Stewart3-May-04 1:58 
sreejith ss nair wrote:
but if i choose color that is not in color struct that will give some values like this [A122,R=654,G=232 B=233]. How can i convert this values to meaningfull names that end user can identifiy easily ?

First of all, you can't use 654 for the red component. The only legal values are 0 through 255. Second, you should use a color picker - which many are available from this site and there is a way to use the ColorEditor that you see in the PropertyGrid for color properties like ForeColor and BackColor - which makes it easy for a user to pick a color. If you want to name these colors as Colin mentioned you'll have problems since the Color methods don't support user-defined names, so you'll have to come up with your own implementation, such as implementing read-only properties with pre-defined Color instances like the named colors already on the Color struct.

 

Microsoft MVP, Visual C#
My Articles
GeneralListbox Hatch Pin
"joel"2-May-04 6:37
"joel"2-May-04 6:37 
GeneralRe: Listbox Hatch Pin
Heath Stewart2-May-04 6:46
protectorHeath Stewart2-May-04 6:46 
GeneralRe: Listbox Hatch Pin
"joel"2-May-04 20:27
"joel"2-May-04 20:27 
GeneralTextBox calculations on the fly. Pin
FredSP2-May-04 4:36
FredSP2-May-04 4:36 
GeneralRe: TextBox calculations on the fly. Pin
Dave Kreskowiak2-May-04 4:40
mveDave Kreskowiak2-May-04 4:40 
GeneralRe: TextBox calculations on the fly. Pin
FredSP2-May-04 16:49
FredSP2-May-04 16:49 
GeneralRe: TextBox calculations on the fly. Pin
Heath Stewart2-May-04 6:42
protectorHeath Stewart2-May-04 6:42 
GeneralRe: TextBox calculations on the fly. Pin
FredSP2-May-04 16:45
FredSP2-May-04 16:45 
GeneralRe: TextBox calculations on the fly. Pin
..Hubert..3-May-04 1:17
..Hubert..3-May-04 1:17 
GeneralRe: TextBox calculations on the fly. Pin
Heath Stewart3-May-04 1:52
protectorHeath Stewart3-May-04 1:52 
GeneralRe: TextBox calculations on the fly. Pin
..Hubert..4-May-04 7:51
..Hubert..4-May-04 7:51 
GeneralRe: TextBox calculations on the fly. Pin
Heath Stewart4-May-04 8:04
protectorHeath Stewart4-May-04 8:04 
GeneralArray and form Pin
brugi821-May-04 23:20
brugi821-May-04 23:20 
GeneralRe: Array and form Pin
leppie2-May-04 0:54
leppie2-May-04 0:54 
GeneralRe: Array and form Pin
Dave Kreskowiak2-May-04 4:36
mveDave Kreskowiak2-May-04 4:36 
GeneralRe: Array and form Pin
thomasa2-May-04 22:23
thomasa2-May-04 22:23 
GeneralRe: Array and form Pin
brugi823-May-04 1:10
brugi823-May-04 1:10 

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.