473,486 Members | 2,296 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

color pallet

Hi,

Is there any standard control available in C# to display color pallet
or to choose the colors?
If yes, can you please send a code snippet?

Please let me know ASAP.

Thanks,
PI

Aug 16 '07 #1
5 3080
Hi,

Look for the ColorDialog Class

http://www.c-sharpcorner.com/UploadF...gHowtouse.aspx

It will probably help you, tought it's the standard windows color chooser...
if you want something more like Photoshop, you will need to do your own...

I hope it helps

ThunderMusic
<ip*****@gmail.comwrote in message
news:11**********************@g12g2000prg.googlegr oups.com...
Hi,

Is there any standard control available in C# to display color pallet
or to choose the colors?
If yes, can you please send a code snippet?

Please let me know ASAP.

Thanks,
PI

Aug 16 '07 #2
Thanks for your quick reply.

Your suggestion works but if I want to have the color palette which
will just be dropped down and then the user selects it from the
palette. Is there any control with such functionality? Does photoshop
provides the same kind of palette?

Thanks,
PI
On Aug 16, 5:44 pm, "ThunderMusic"
<NoSpAmdanlatathotmaildot...@NoSpAm.comwrote:
Hi,

Look for the ColorDialog Class

http://www.c-sharpcorner.com/UploadF...ogHowtouse1201...

It will probably help you, tought it's the standard windows color chooser...
if you want something more like Photoshop, you will need to do your own...

I hope it helps

ThunderMusic

<ipra...@gmail.comwrote in message

news:11**********************@g12g2000prg.googlegr oups.com...
Hi,
Is there any standard control available in C# to display color pallet
or to choose the colors?
If yes, can you please send a code snippet?
Please let me know ASAP.
Thanks,
PI- Hide quoted text -

- Show quoted text -

Aug 16 '07 #3
Hi,
Yes Photoshop provides this kind of palette, but I don't think you can
access it from your app...

I don't know of any control that does this, so you'll probably have to
develop your own using GDI+ (Graphics objects in .NET). it's pretty simple,
but you'll need some maths if you want to make it as complete as photoshop
does... but a base one should do just fine... ;)

Here, this page could help you get things started
http://www.codeproject.com/cs/miscct...tteControl.asp

I hope it helps

ThunderMusic
<ip*****@gmail.comwrote in message
news:11**********************@q3g2000prf.googlegro ups.com...
Thanks for your quick reply.

Your suggestion works but if I want to have the color palette which
will just be dropped down and then the user selects it from the
palette. Is there any control with such functionality? Does photoshop
provides the same kind of palette?

Thanks,
PI
On Aug 16, 5:44 pm, "ThunderMusic"
<NoSpAmdanlatathotmaildot...@NoSpAm.comwrote:
>Hi,

Look for the ColorDialog Class

http://www.c-sharpcorner.com/UploadF...ogHowtouse1201...

It will probably help you, tought it's the standard windows color
chooser...
if you want something more like Photoshop, you will need to do your
own...

I hope it helps

ThunderMusic

<ipra...@gmail.comwrote in message

news:11**********************@g12g2000prg.googleg roups.com...
Hi,
Is there any standard control available in C# to display color pallet
or to choose the colors?
If yes, can you please send a code snippet?
Please let me know ASAP.
Thanks,
PI- Hide quoted text -

- Show quoted text -


Aug 16 '07 #4
use the colordialog,
Represents a common dialog box that displays available colors along with
controls that enable the user to define custom colors.
--
Sincerely
Yaron Karni
http://dotnetbible.blogspot.com/
"ip*****@gmail.com" wrote:
Hi,

Is there any standard control available in C# to display color pallet
or to choose the colors?
If yes, can you please send a code snippet?

Please let me know ASAP.

Thanks,
PI

Aug 17 '07 #5
Thanks for your help !!!

On Aug 16, 7:54 pm, "ThunderMusic"
<NoSpAmdanlatathotmaildot...@NoSpAm.comwrote:
Hi,
Yes Photoshop provides this kind of palette, but I don't think you can
access it from your app...

I don't know of any control that does this, so you'll probably have to
develop your own using GDI+ (Graphics objects in .NET). it's pretty simple,
but you'll need some maths if you want to make it as complete as photoshop
does... but a base one should do just fine... ;)

Here, this page could help you get things startedhttp://www.codeproject.com/cs/miscctrl/ColorPaletteControl.asp

I hope it helps

ThunderMusic

<ipra...@gmail.comwrote in message

news:11**********************@q3g2000prf.googlegro ups.com...
Thanks for your quick reply.
Your suggestion works but if I want to have the color palette which
will just be dropped down and then the user selects it from the
palette. Is there any control with such functionality? Does photoshop
provides the same kind of palette?
Thanks,
PI
On Aug 16, 5:44 pm, "ThunderMusic"
<NoSpAmdanlatathotmaildot...@NoSpAm.comwrote:
Hi,
Look for the ColorDialog Class
>http://www.c-sharpcorner.com/UploadF...ogHowtouse1201...
It will probably help you, tought it's the standard windows color
chooser...
if you want something more like Photoshop, you will need to do your
own...
I hope it helps
ThunderMusic
<ipra...@gmail.comwrote in message
>news:11**********************@g12g2000prg.googleg roups.com...
Hi,
Is there any standard control available in C# to display color pallet
or to choose the colors?
If yes, can you please send a code snippet?
Please let me know ASAP.
Thanks,
PI- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -

Aug 17 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5353
by: dan glenn | last post by:
(PHP4.3.4, GD2) How can I save a PNG using GD2 and insure that it saves as a palette-based (8-bit, 256-color) single-color transparancy?? Saving this way, I could be sure that an image loaded from...
6
4091
by: me | last post by:
good day, i found this message: and i want to know more about it too. ========================================== Hey all, example:...
6
8488
by: rzed | last post by:
I'm using PIL to generate some images which may be rotated at the user's option. When they are rotated, the original image is cropped in the new image (which is fine), and the corners are black...
4
1900
by: Rudy | last post by:
Hello all, I'm sure there is, just can't figure it out. I have the RGB code and the color number. But the color doesn't exsist in Visual studio.net. Can I add this color to the system pallet it...
15
2317
by: | last post by:
Just about finished with an include modual that allows a user to select a color. Completely dynamic. all you have to do is include the script and run the main trigger script. One problem with...
3
2858
by: Andrew Poulos | last post by:
I need to build a colour wheel. It has these specs: - The user needs to be able to select a colour from it - It should show as many colours as reasonable. The client wanted the entire 16 million+...
2
1048
by: Smith | last post by:
I have developed a web based application targeting various browsers (different versions). When I select the color... do I have to make any considerations? Anything like true font etc.. ...
0
1370
by: Prashant | last post by:
Hi , I want a color pallet control in my web-form Data Grid, I don't want color dialoge like MS-Paint, now when user select particular color, I want selected color's Hex value and user can also...
0
965
by: Oddball | last post by:
I'm using a shared hosting package and I would like to be able to render GIFs using a new pallet (so, you know, they're usable). Problem is all the approaches I've seen so far require at least...
0
7105
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.