控件之间的光标点移动(VB.NET) [英] Cursor point move between controls(VB.NET)

查看:124
本文介绍了控件之间的光标点移动(VB.NET)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我在Windows窗体中有几个文本框和梳子盒,我根据位置设置标签索引,有时字段将根据要求禁用我把复选框设置为启用和禁用控件,我想根据启用的控件移动光标。



让我们说Text1已启用,text2已禁用text3已启用combobox1已启用



所以我需要移动光标text1,text3,combobox1(因为text2被禁用)



任何帮助



我的尝试:



创建控件并尝试移动光标基于启用或禁用

hello,

I have few textboxes and combboxes in the windows forms,i set tab index according the positions,sometimes the fields will be disable as per requirements as i put checkboxes to enable and disable the controls,I want to move the cursor based what controls are enabled.

lets say Text1 Enabled ,text2 disabled text3 enabled combobox1 enabled

so i need to move cursor text1,text3,combobox1 (as text2 is disabled)

any help

What I have tried:

Created controls and trying to move cursor based on enabled or disabled

推荐答案

设置所有控件的tab-order,因为所有控件都已启用...将禁用那些禁用的...

更改控件的Tab键顺序 [ ^ ]
Set tab-order for all controls as all were enabled... Those are disabled will be skipped...
Changing the Tab Order of Controls[^]


这篇关于控件之间的光标点移动(VB.NET)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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