|
-
Feb 16th, 2007, 05:22 PM
#1
Thread Starter
Hyperactive Member
[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
-
Feb 16th, 2007, 05:24 PM
#2
Re: Using keyboard to activate Command Button
CommandButton.Default = True
-
Feb 16th, 2007, 10:01 PM
#3
Thread Starter
Hyperactive Member
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
-
Feb 17th, 2007, 01:30 AM
#4
Re: Using keyboard to activate Command Button
You can also set it during design time.
-tg
-
Feb 21st, 2007, 11:14 PM
#5
Thread Starter
Hyperactive Member
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
Last edited by Tarablue; Feb 21st, 2007 at 11:20 PM.
-
Feb 22nd, 2007, 02:08 AM
#6
Re: 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.
You can also make use of the .accelerator property
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|