专注于上一个项目 [英] focus to previous item

查看:65
本文介绍了专注于上一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在计费时从上一个控件(文本框)到第三个控件(文本或组合框)或任何其他控件的焦点移至更正,而无需在C#中使用鼠标单击?我的意思是后退"运动.就像制表符一样,像forword motion

解决方案

尝试使用JavaScript函数..我假设您要直接按制表键的第3个控件..
像这样尝试
1)编写JavaScript函数,以检查按键并捕获Tab键.
2)如果按键是tab键,则将焦点设置为所需的控件.

只是一个想法,我希望对您有帮助.

欢呼声,
vinay


尝试这个想法

只需在(last)TextBox_Leave(...)事件处理程序中调用(third)comboBox.SetFocus()


您将必须在控件上显式调用SetFocus().

How can I get focus from last control (textbox) to third control (text or combobox) or any other control for correction at the time of billing without using mouse click in C#? I meant" backword "motion of culsor . just like tab as forword motion

解决方案

Try to use JavaScript function..I am assuming u want to go directly to 3rd control on tab key press..
Try like this
1) Write JavaScript function which checks the key press and catches the tab key.
2) If the key press is tab then set the focus to the control u want.

Just an idea I am giving hope it helps u.

cheers,
vinay


try this idea

simply call the (third)comboBox.SetFocus() in (last)TextBox_Leave(...) event handler


You will explicitly have to call SetFocus() on the control.


这篇关于专注于上一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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