Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 25th, 2004, 5:49 AM   #1
private1337
Newbie
 
Join Date: Oct 2004
Posts: 7
Rep Power: 0 private1337 is on a distinguished road
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 is offline   Reply With Quote
Old Oct 29th, 2004, 8:58 AM   #2
private1337
Newbie
 
Join Date: Oct 2004
Posts: 7
Rep Power: 0 private1337 is on a distinguished road
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...
private1337 is offline   Reply With Quote
Old Oct 31st, 2004, 6:22 AM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Set the KeyPreview property of the form to True - then you can use the Form_KeyUp Method to check what's been pressed.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Oct 31st, 2004, 10:21 PM   #4
private1337
Newbie
 
Join Date: Oct 2004
Posts: 7
Rep Power: 0 private1337 is on a distinguished road
Thanks for your reply. Form_KeyUp Method use on where? Sorry noob here
private1337 is offline   Reply With Quote
Old Nov 1st, 2004, 11:42 AM   #5
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
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.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:53 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC