放置在tabpageview控件上时,文本框焦点问题 [英] Textbox focus issue when placed on tabpageview control
本文介绍了放置在tabpageview控件上时,文本框焦点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好...
当放置在tabpageview控件上时,文本框没有被聚焦...
但是当我直接放置在表单上时,它的重点就是...
对我来说至关重要...
您能建议我可能是什么问题吗?
Hello...
Textbox is not getting focused when placed on tabpageview control...
But when i place on form directly then its focussing...
Its bit crucial to me...
Can u suggest me what might be the issue...
推荐答案
将TabControl
/TabPage
和.
或者,在Form
的Shown event
中调用TextBox.Focus()
.
Set theTabOrder
property to Zero for both theTabControl
/TabPage
and theTextBox
.
Or, callTextBox.Focus()
in theForm
''sShown event
.
除了Toli所说的以外,请检查以下内容:TextBox.CanFocus
属性必须为true
.
—SA
In addition to what Toli says, check this: theTextBox.CanFocus
property must betrue
.
—SA
这篇关于放置在tabpageview控件上时,文本框焦点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文