单击UserControl按钮后出现焦点问题 [英] Focus Problem After Clicking UserControl Button

查看:98
本文介绍了单击UserControl按钮后出现焦点问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,所有专业人士
我有一个窗体,上面有一个UserControl(用于FilterBar),当我单击它上的搜索"按钮时,我的DataGridView绑定了,但是焦点从窗体中移出,这种情况是因为键盘键在窗体上不起作用,例如用于在网格行上行走的上下键
问题是什么?????
我能为此做些什么????
是用户控制问题吗????
Tnx All

Hello All Professional
i have a form that it has an UserControl on it (For FilterBar),when I Click On Search Button On it , My DataGridView Bind But Focus Get Out Of Form , A Situation Like that Because Keyboard key Dos not Work On Form,For Example Up And Down Key For Walking On The Grid s Row
What Is Problem ?????
What I Can Do For It ????
Is It User Control Problem ????
Tnx All

推荐答案


您是否有正确的顺序以控制控件的表索引"?因为每个控件都有一个必须设置的选项卡索引proparty.
Hi
Do you have a correct sequence for your controls''s "Tab index" in proparties? because each control have a tab index proparty that you have to set.


这篇关于单击UserControl按钮后出现焦点问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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