文本框应用程序 - Visual Studio 2005 [英] Text box application-Visual Studio 2005

查看:69
本文介绍了文本框应用程序 - Visual Studio 2005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,



有人在VS 2005中有文本框的代码吗?





问候,

Bakkiyanathan

+91 9731912416

HI ,

Do anybody have a code for Text Box in VS 2005 ?


Regards,
Bakkiyanathan
+91 9731912416

推荐答案

文本框代码?这是什么意思?

添加更多描述,你想知道什么?

1.如果你只想创建一个textBox类,那么代码是:



TextBox txt1 = new TextBox();



2.如果要创建自己的textBox?所以你应该知道的更好.Net不是开源的,我认为你不能找到TextBox类的源代码。
code for Text Box ? What does it mean ?
add some more description, what do you want to know?
1. If you only want to create a textBox class here is the code:

TextBox txt1=new TextBox();

2. If you want to create your own textBox? So better you should know .Net is not open source and i don't think you can find source code for TextBox class.


这可能对你有所帮助 - > http://msdn.microsoft.com/en-us/library/ 75bh1f1t%28v = vs.90%29.aspx [ ^ ]



如果你想为文本框创建自己的类,那么只需声明你的类并且从 CEdit 类派生它,你也可以覆盖 CEdit 类的成员函数,为你自己的类提供特定的行为。
This might help you -> http://msdn.microsoft.com/en-us/library/75bh1f1t%28v=vs.90%29.aspx[^]

If you want to create your own class for Text Box, Then just declare your class and derived it from CEdit class, you can also override member functions of CEdit class to provide specific behavior to your own class.


这篇关于文本框应用程序 - Visual Studio 2005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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