访问量: 34803次,访客数: 29815人,浏览量: 1次 
首页  编辑  

通过控件名找到其实例

Tags: /C#/RTTI/   Date Created: Tue Jun 10 2008 01:18:26 GMT+0000 (Coordinated Universal Time)

Control [] vControls = Controls . Find( "button1" , true );

if (vControls . Length >= 1 ) vControls[ 0 ] . Text = "Zswang ;