473,811 Members | 3,220 Online
Bytes | Software Development & Data Engineering Community
+ 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 3094
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.goo glegroups.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, "ThunderMus ic"
<NoSpAmdanlatat hotmaildot...@N oSpAm.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.goo glegroups.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.goog legroups.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, "ThunderMus ic"
<NoSpAmdanlatat hotmaildot...@N oSpAm.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.go oglegroups.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, "ThunderMus ic"
<NoSpAmdanlatat hotmaildot...@N oSpAm.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/ColorPaletteCon trol.asp

I hope it helps

ThunderMusic

<ipra...@gmail. comwrote in message

news:11******** **************@ q3g2000prf.goog legroups.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, "ThunderMus ic"
<NoSpAmdanlatat hotmaildot...@N oSpAm.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.go oglegroups.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
5371
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 a transparent gif could be saved as a png and the png would work in IE versions 5.5 and greater (IE has bug that messes up png transparancies which use full alpha channel). thanks for any help at all, -dg
6
4154
by: me | last post by:
good day, i found this message: and i want to know more about it too. ========================================== Hey all, example: $s_Colors="0066FF;0066CC;3366CC;0033FF;003399;003366;99CCFF;3399FF;0099FF;66
6
8510
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 (which is not, in this case). I can't find any documented way to change the default fill color (if that's what it is) for the corners, and PIL also doesn't seem to support a flood fill. I have created a flood fill in Python, which works but which...
4
1920
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 self, so I can add the custom color to fonts? I need to match as close as possible to the color I was given. Thanks Rudy
15
2349
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 the event modual is the fact that it resets events for all TD's. not sure how to specify to cascade down through just the created table. Any ideas? Feel free to use this where ever you wish as long as you give me credit. this was a few weeks of...
3
2875
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+ colour spectrum but I pointed out that at one colour per pixel that's a 2,000 pixel square. It would be good to get thousands of colours. - The colours in the wheel should have a smooth transition across the wheel. I was thinking of building...
2
1065
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.. Thanks, Smith
0
1394
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 enter a custom RGB color and accordingly my web page style (some Graph color) I would like to change. Is there any control avail for the same in C# or .Net 2.0. Please guide me or share the sample C# code if you have any
0
981
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 Medium Trust, and I just don't have it. Does anyone have any ideas?
0
10392
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10403
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10136
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9208
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.