放置在tabpageview控件上时,文本框焦点问题 [英] Textbox focus issue when placed on tabpageview control

查看:64
本文介绍了放置在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.
或者,在FormShown event中调用TextBox.Focus().
Set the TabOrder property to Zero for both the TabControl / TabPage and the TextBox.
Or, call TextBox.Focus() in the Form''s Shown event.


除了Toli所说的以外,请检查以下内容:TextBox.CanFocus属性必须为true.

—SA
In addition to what Toli says, check this: the TextBox.CanFocus property must be true.

—SA


这篇关于放置在tabpageview控件上时,文本框焦点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆