开发者

How to add a tab in the color palette

Hello I am working in VB.Net 2.0 windows forms.

A color palette occurs on click of backcolor of any control. I want to add a new tab in this palette. In the new tab,开发者_StackOverflow社区 I want to add the new colors as per the requirement.


The actual dialog is a private class named ColorUI, nested inside the System.Drawing.Design.ColorEditor class. That prevents you from altering it.

You'll need to create a complete replacement for this UITypeEditor derived class. You can get implementation hints on getting this right by using Reflector. Beware that you cannot override the [Editor] attribute on existing controls, your new version of the dialog will only be usable on your own custom controls.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜