如何让我的自定义控件在C#中? [英] How do I make custom controls in C#?

查看:177
本文介绍了如何让我的自定义控件在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屋!

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