Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   Sound Button? (http://www.programmingforums.org/showthread.php?t=947)

private1337 Oct 25th, 2004 4:49 AM

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?

private1337 Oct 29th, 2004 7:58 AM

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...

Ooble Oct 31st, 2004 5:22 AM

Set the KeyPreview property of the form to True - then you can use the Form_KeyUp Method to check what's been pressed.

private1337 Oct 31st, 2004 9:21 PM

Thanks for your reply. Form_KeyUp Method use on where? Sorry noob here :)

Ooble Nov 1st, 2004 10:42 AM

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