![]() |
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?
|
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... |
Set the KeyPreview property of the form to True - then you can use the Form_KeyUp Method to check what's been pressed.
|
Thanks for your reply. Form_KeyUp Method use on where? Sorry noob here :)
|
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.
|
| All times are GMT -5. The time now is 11:10 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC