我想创建自己的文本框控件吗? [英] i want to create my own textbox control?

查看:79
本文介绍了我想创建自己的文本框控件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建自己的文本框控件并从用户控件或控件类继承.为此,我必须重写哪些方法?你们能给我一些有关我必须遵循的方法的信息吗?谢谢你

编辑(由JSOP添加)=================================

我的意思是原始文本框.例如;当我按键盘上的任意键时,它会写在文本框中.而且我什至不知道调试后如何显示文本框.

i want to create my own textbox control and inherit from the user control or control class. To do that, on which methods i have to override? can u guys give me some information about the way i have to follow on this?? thank u

EDIT (added by JSOP) ====================================

I mean the original textbox. for example; when i push the any key on keyboard, it is written on textbox. and i even dont know how i make a textbox appear after debugging.

推荐答案

要覆盖的内容完全取决于您要执行的操作,这与原始操作有所不同TextBox对象.

在MSDN上:创建自定义控件 [ ^ ]

Google还为"C#自定义控件"返回了180万个结果.
What to override depends entirely on what you want to do that''s different from the original TextBox object.

On MSDN: Creating a Custom Control[^]

Google also returned 1.8 million results for "C# custom control".


这篇关于我想创建自己的文本框控件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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