textbox.focus()在TabContainer中不起作用 [英] textbox.focus() not working in TabContainer

查看:46
本文介绍了textbox.focus()在TabContainer中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我有一个TabContainer。我有一个文本框。我需要在页面加载时我的光标自动转到文本框。这意味着textbox.focus在页面加载时起作用。但由于TabContainer,它无法正常工作。这个问题的任何解决方案。

Sir, i have a TabContainer. In which i have a Textbox. i need that on page load my cursor automatically goes to textbox. it means textbox.focus work on page load. but its not working because of TabContainer. Any solution for this problem.

推荐答案

我建​​议如下:

在第一次选择带有相关TextBox的TabPage。

然后选择你想要的TextBox(TextBox.select)。
I would suggest the following :
At 1st SELECT the TabPage with the relevant TextBox.
Then SELECT the TextBox you want (TextBox.select).


这篇关于textbox.focus()在TabContainer中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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