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

C#

 
GeneralRe: Design database....... Pin
Colin Angus Mackay2-May-04 21:38
Colin Angus Mackay2-May-04 21:38 
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 
sreejith ss nair wrote:
My aim is to store all selected color to database. How it is possible.

You could use int myIntColour = System.Drawing.ColorTranslator.ToWin32(myColour); to convert the colour to an int and store that value in the database. You can then use System.Drawing.ColorTranslator.FromWin32(myIntColour); to convert back to a .NET object


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 ?

If the colour is not already available as a named colour then you'll either have to make up some names yourself (a big task as there are 16.7million possible combinations) or get the user to name their own custom colours.


"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

Coming soon: The Second EuroCPian Event


GeneralRe: Storing Color To database Pin
Heath Stewart3-May-04 1:58
protectorHeath Stewart3-May-04 1:58 
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 

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.