[RESOLVED] Using keyboard to activate Command Button
In my program I have several Combo boxes that need input from the user before you can proceed. Some of these have default values so after the first two have data a command button becomes active. It's at this stage that I would like too offer the use of the Enter Key to activate the command button instead of using a mouse click.
Can anyone help with some code on this.
Thanks
Tarablue
Re: Using keyboard to activate Command Button
CommandButton.Default = True
Re: Using keyboard to activate Command Button
Well that's incredable. I was expecting several lines of code which I would have to read over several times in order to get a handle on what's going on.
Thanks again Logophobic
rgds
Tarablue
Re: Using keyboard to activate Command Button
You can also set it during design time.
-tg
Re: Using keyboard to activate Command Button
TechGnome,
Thank you for that, I'll give it a try.
In the mean time can you look at my other problem 'Big Select in MSFlexGrid' which is causing me some concern
Tarablue
Re: Using keyboard to activate Command Button
Quote:
In my program I have several Combo boxes that need input from the user before you can proceed. Some of these have default values so after the first two have data a command button becomes active. It's at this stage that I would like too offer the use of the Enter Key to activate the command button instead of using a mouse click.
Can anyone help with some code on this.
You can also make use of the .accelerator property ;)