![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2004
Posts: 7
Rep Power: 0
![]() |
What is the source code for sound button? I would like to create 5 buttons which contains 5 different short .wav file. When pressing keyboard shortcut keys like A it will have 1 sound and B it will have another sound tat goes together? Any idea?
|
|
|
|
|
|
#2 |
|
Newbie
Join Date: Oct 2004
Posts: 7
Rep Power: 0
![]() |
I have the coding but I need help on creating shortcut keys like arrow key and space bar on buttons... Any Idea??
I also need help on I can press 3 buttons @ 1 goal and play the sound together... |
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Set the KeyPreview property of the form to True - then you can use the Form_KeyUp Method to check what's been pressed.
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Oct 2004
Posts: 7
Rep Power: 0
![]() |
Thanks for your reply. Form_KeyUp Method use on where? Sorry noob here
![]() |
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
In the Code window, select Form in the first drop-down box, and KeyUp in the second. This method is executed when a key is pressed and released - the KeyCode variable tells you which key. For example, vbKeyS represents the letter S, and vbKeyUp represents the up key. There's a full list on the MSDN.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|