将控件设置为菜单栏中的第一个选项 [英] Set control to the first option in menu bar

查看:71
本文介绍了将控件设置为菜单栏中的第一个选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在vb6项目中有一个菜单栏。我想将默认控件设置为第一个选项。

如果菜单栏有以下内容(文件编辑购买报告...),我想在文件的第一个选项上设置默认控件。因此用户可以按Alt键来执行此操作。

有人可以帮忙吗?

解决方案

你是什么意思设置默认值控制第一个选项


您究竟想要做什么?


请提供更多细节。

我有一个传统的菜单,包括以下选项(购买,报告,维护....)和上拉菜单。喜欢这个

购买 报告

CashQ账户报表

账户资产负债表


我想做这样的事情:当我打开软件并从键盘上点击Enter键时,它启动CashQ,这是菜单中的第一个选项。


如果用户不想使用Cash-Q,他可以使用箭头键在菜单选项之间滚动。我怎么能这样做?

我希望你现在明白这一点。


尝试在keydown事件中调用文件菜单第一项的click事件形式。


Hi All
I have a menu bar in vb6 project. I want to set default control to the first option.
If the menu bar has following (File Edit Purchase Report...) I want to set default control on first option of File. So that user may press Alt button to do that.
Can someone help?

解决方案

What do you mean by set default control on first option

What exactly you are trying to do ?

Please pas on few more details .


Well I have a traditional menu with following options (Purchase, Reports, Maintenance.... ) with pullup menus. Like this

Purchase Reports
CashQ Account Statement
Account Balance Sheet

I want to do something like this: when I open software and hit an Enter Key from the keyboard, it start CashQ which is first option in menu.

If user don''t want to do Cash-Q he can use arrow keys to scroll between menu options. How I can do this?
I hope now you understand this.


try to call the click event of the first item of the file menu in the keydown event of the form.


这篇关于将控件设置为菜单栏中的第一个选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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