如何在表单中更改像启用true和textbox和lable属性的属性。 [英] how to change property like enabled true and textbox and lable property also in form.

查看:87
本文介绍了如何在表单中更改像启用true和textbox和lable属性的属性。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个usercontrol并有一个按钮,一个texbox和一个按钮,但我的观点是所有内容意味着usercontrol内部将在设计时启用属性false。



i正在使用其他形式的UserControl,但我的问题是如何更改属性,如启用true和textbox和lable属性也在表单中。



我希望你会了解所说的内容?

I want to create one usercontrol and have one button,one texbox and one button but my point is all content means inside the usercontrol will be enabled property false in design time.

i am using UserControl in otherform properly but my question is how to change property like enabled true and textbox and lable property also in form.

I hope you will understand what is saying?

推荐答案

请查看该问题的所有评论。



如果你想要要从此UserControl外部访问UserControl上的控件,请参阅: http://stackoverflow.com/questions/411316/how-to-access-properties-of-a-usercontrol-in-c-sharp [ ^ ]。



WinForms:

如需了解更多信息,请参阅:演练:使用Visual Basic .NET编写用户控件 [ ^ ]



WebForms:

操纵用户控件属性 [ ^ ]



我建议读这个:如何:实施属性变更通知 [ ^ ]
Please, see all comments to the question.

If you want to access to the controls on UserControl from outside of this UserControl, please see: http://stackoverflow.com/questions/411316/how-to-access-properties-of-a-usercontrol-in-c-sharp[^].

WinForms:
For further information, please see: Walkthrough: Authoring a User Control with Visual Basic .NET[^]

WebForms:
Manipulating User Control Properties[^]

I'd suggest to read this: How to: Implement Property Change Notification[^]


这篇关于如何在表单中更改像启用true和textbox和lable属性的属性。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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