Discussion Locked

New to VB

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Very new to VB and please go very easy on me.
Here is my question folks.
Using VB6, I clicked on File | New Project | Standard and it opens a Form1. So I created a Picture box. I loaded a picture of a apple.
Now I want to click on the picture and a sound should appear. Let's say the sound file is on the root C. How do i do this? HELP!
Thanks all :-)

12 replies

by jackofalltech

Double-click on the picture and a code window will open with a skeleton procedure all ready for you to add code to.

I don't remember the command to play a sound but it should be easy to find in the help.

Ralph

by gpaz

Hey my name is George and I do some VB as well, do more like imput and output data, but do like to play with vb to see how i am in my crativity. I dont have an emidiate answer for you, but may be we could help each other. e-mail me back and we can exchange codes for diferent things that may be to our interest

by guruofdos

If you search on the help files (MSDN cds that come with VB6) there is a whole section dedicated to PRECISELY what you want to do, including code examples. Not got the MSDN CDs??? In that case you don't have a legitimate and fully liceneced copy of VB....in which case you can find the same code, articles and hints on the Microsoft website

http://developer.microsoft.com

But, as you are so convinced (judging by your postings in another debate) that 'your' God is all powerful and all knowing, I think that prayer may be your answer!

by pcnetworktech

Thanks for the help GuroofDOS, but what's up with attitude? I do pray to GOD for wisdom and I do ask people questions. After all GOD gave people brains.

by guruofdos

God should grant you the wisdom to realise that the top right menu item which is labelled 'Help' (to the right of 'Add-ins' and 'Window') does exactly that!

by jackofalltech

Guru, I also get tired of stupid questions (no offense, PCNET), but who pissed in your coffee today? Chill out a little!

True, the Bible says we shouldn't depend on the advice of the 'ungodly', but it also says that if we associate with wise people we too will become wise (Schaefer paraphrase).

Ralph

This discussion is closed to new replies.