如何在winform 一打开(注意是一打开winform) 把光标定位在某一个testbox中??我用tabindex=0不行呢? 我的TEXTBOX控件在tabPage1里面,用focus()不行呢??
我这样不行呢
foreach(Control cc in this.tabControl1.TabPages)
{
if(cc is TextBox)
{
if(cc.TabIndex==0)
cc.Focus(); }
} this.textBox1.focus()也是不行的
大家可以测试一下吧,难道vs.net没有这个功能
我这样不行呢
foreach(Control cc in this.tabControl1.TabPages)
{
if(cc is TextBox)
{
if(cc.TabIndex==0)
cc.Focus(); }
} this.textBox1.focus()也是不行的
大家可以测试一下吧,难道vs.net没有这个功能
你的方法还是不行呢
有高手回答吗??
foreach(Control cc in this.tabControl1.TabPages)
{
if(cc is TextBox)
{
if(cc.TabIndex==0)
cc.Focus();}
}