Monday, May 25, 2009
Cats And Dogs Assignment Part 1
In the Cats and Dogs Assignment we discovered some new code that we haven't used yet that allows the use of audio and visual animation. The code that we used to link up the audio with the items in the combo box was My.Computer.Audio.Play(My.Resources.cat/dog_1, AudioPlayMode.Background). For cat it was placed in the Meow method and for dog it was in the Bark method. When we were creating the animation for the cat to chase the mouse or for the dog to go walkies we placed in this bit of code; _imgPictures(0) = Image.FromFile("H:\dog/cat1.gif"). For the timer to work we had to set a label as a clock for the current time by using lblCurrentTime.Text = Now.ToString("HH:mm:ss").
Subscribe to:
Post Comments (Atom)


No comments:
Post a Comment