本文介绍了文本框焦点问题C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我放置断点然后焦点设置正确--- txtGrpLCode.Text(这是正确的)

但是正常运行然后焦点设置--- txtSrNo.text(这是错误的)



请帮助....



提示..

如果我的数据gride启用false然后工作确定

但我不会使datagride启用true



我尝试了什么:
插入记录后


....



txtGrpLCode.Text =;

txtSrNo.Text =;

txtTag.Text =;

txtGrpLCode.Focus();

解决方案



When i Put breakpoint then Focus set correctly ---txtGrpLCode.Text (that is Right)
but normaly run then focus set ---txtSrNo.text (That is wrong)

Pls Help....

Hint..
If my datagride enable false then Work Ok
But i wont datagride enable true

What I have tried:

after insert record ....

txtGrpLCode.Text = "";
txtSrNo.Text = "";
txtTag.Text = "";
txtGrpLCode.Focus();

解决方案



这篇关于文本框焦点问题C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 04:31
查看更多