|
-
Jun 8th, 2002, 04:45 PM
#1
Thread Starter
Frenzied Member
Yet Another N00B Question
How do i activevate a command boutton using (as an example) Enter/Return ? Hope ya' all got that...
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jun 8th, 2002, 04:57 PM
#2
Hyperactive Member
If you just want to activate it in your program just do:
VB Code:
form1.command1.value = true
Kind Regards,
Pieter
PS: If you found someone's answer helpful, please be so kind to rate that person.
Thanks.
-
Jun 8th, 2002, 05:03 PM
#3
Thread Starter
Frenzied Member
That was not what i wanted ;)
I want the program too do an action when the user presses Enter/Return in this case use a command button
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jun 8th, 2002, 05:11 PM
#4
This will set the Command1 as default, when u hit Enter, your code wil be executed
-
Jun 8th, 2002, 05:15 PM
#5
Thread Starter
Frenzied Member
Now that's more like it !
Thanks just what i wanted thanks... Both of ya
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jun 8th, 2002, 05:21 PM
#6
Hyperactive Member
Just to add to that you can also set cancel to true and this means the click event fires when you press ESC. You cannot use both for the same button though.
See ya later,
-=XQ=-
"Reality is merely an illusion, albeit a very persistent one. "
- Albert Einstein (1879-1955)
This is the coolest site ever!!!
-
Jun 8th, 2002, 06:00 PM
#7
Need-a-life Member
Originally posted by -=XQ=-
Just to add to that you can also set cancel to true and this means the click event fires when you press ESC. You cannot use both for the same button though.
Actually you can... but it might not be what you want.
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Jun 8th, 2002, 06:02 PM
#8
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
|