知道的能否告诉我??
难道真的还要通过这么老土的办法去实现吗?
Control c = getControl(Name);
switch(c.GetType().ToString())
{
case"System.Windows.Forms.TextBox":
this.getValue(c as TextBox);
break;
case"System.Windows.Forms.DateTimePicker":
this.getValue(c as DateTimePicker);
break;
case"System.Windows.Forms.ComboBox":
this.getValue(c as ComboBox);
break;