保存在一个ColorDialog类色板在C#Windows应用程序 [英] Save the Swatches on a ColorDialog in a C# Windows Application

查看:169
本文介绍了保存在一个ColorDialog类色板在C#Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有哪里System.Windows.Forms.ColorDialog对话框作为一个颜色选择器的应用程序。反正是有,我可以(1)保存用户保存样本此对话框或(2)建立一套标准色板,当他们打开拾色器的所有用户将看到一节中的自定义颜色?

I have an application where the System.Windows.Forms.ColorDialog dialog box is used as a color picker. Is there anyway that I can either (1) save the swatches the user saves in the "Custom Colors" section of this dialog or (2) create a standard set of swatches that all users would see when they open the color picker?

推荐答案

我刚存储的RGB值,每个样本一个用户控件。你可以很容易地存储自定义色板像,以及

I have a UserControl that just stores the RGB values for each swatch. You could easily store Custom swatches like that, as well.

编辑:哦,居然回答你的问题,来看看:

Oh, and to actually answer your question, take a look at:

http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/19cf2bdd-7e97-4642-8272-a125fb668179

这篇关于保存在一个ColorDialog类色板在C#Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆