111,120
社区成员
发帖
与我相关
我的任务
分享System.Windows.Forms.TextBox t = null;
foreach (System.Windows.Forms.Control c in this.Controls)
{
if (c is TextBox && c.Text== "")
{
if (t == null||t.TabIndex>c.TabIndex)
t = c as TextBox;
}
}
if (t!=null)
{
MessageBox.Show(t.Name);
}