从控件获取属性和值 [英] Get Properties and Value from Control

查看:82
本文介绍了从控件获取属性和值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想从控件中获取属性和值.所以我想创建一个通用类.

所以请帮我解决这个问题.



谢谢

Hello EveryBody,

I want to get the properties and value from control. so i am trying to create a class generic.

So pls help me for this topic.



Thanks

推荐答案

没有必要.在Winform下,如果它是TextBox,ComboBox等控件.所有这些都继承自控件 [
There is no need for that. Under Winform, if it is a TextBox, ComboBox etc. controls. All of then is inherited from Control[^] where you can call .Text etc.

Please be more specific.


这篇关于从控件获取属性和值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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