.NET Programming

Forum dedicated to computer hardware and software, mobile phones and electronic gadgets.
User avatar
f1seb
Posts: 1299
Joined: Tue Aug 06, 2002 5:15 am

Post

Anybody here that can possibly answer a question pertaining to that?


User avatar
BoostFab
Posts: 3529
Joined: Wed Dec 03, 2003 8:23 am
Car: S13cp, S13fb, S14z
Location: Nismo Land
Contact:

Post

what's ur question?

User avatar
f1seb
Posts: 1299
Joined: Tue Aug 06, 2002 5:15 am

Post

BoostsFed wrote:what's ur question?
How to embed a wav. file into the exit toolstrip menu item. So when the user terminates the application by selecting 'File' and then 'Exit' the sound plays.

User avatar
BoostFab
Posts: 3529
Joined: Wed Dec 03, 2003 8:23 am
Car: S13cp, S13fb, S14z
Location: Nismo Land
Contact:

Post

import the System.Runtime.InteropServices and you can use the PlaySound() function

vb.net or c#??you can search on msdn for some example codes.

User avatar
GEO
Posts: 6449
Joined: Mon Jul 07, 2003 3:15 pm
Car: 95 240sx KA-T
Contact:

Post

You need to do a codebase and using an URL object. Then use the Uadio Clip object and assign it to an instance. Then use the .start and .stop to control it.


Return to “Computers / Electronics”