如何让我的自定义控件在C#中? [英] How do I make custom controls in C#?
问题描述
所以我工作的一个C#程序,其功能类似的IDE。
的事情是,我做它通过丰富的文本框自定义语法高亮SUPER低效的。
So I'm working on a C# program that functions something like an IDE. The thing is, I'm doing it through a rich text box the custom syntax highlighting is SUPER inefficient.
我不知道是否有办法做出类似丰富的文本框自定义控制(更是以关一个),然后在建设中的语法更简单的方法...
I was wondering if there was a way to make a custom control similar to a rich text box (even based off of one) and then build in the syntax highlighting in an easier way...
那么,如何突出我做的自定义控件?而如果你是超级漂亮,你会点我在这一个很好的教程的方向!
So, how do I make custom controls? And if you were super nice, you'd point me in the direction of a good tutorial on it!
推荐答案
简单但功能例子:
Windows窗体:
Windows Forms:
的 http://www.codeproject.com/KB/miscctrl/cutebutton.aspx
WPF:
http://msdn.microsoft.com/en-美国/库/ cc295235.aspx
这篇关于如何让我的自定义控件在C#中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!