How to Make a Cheese Eating Program on Visual Basic
Intro: How to Make a Cheese Eating Program on Visual Basic
This is my tutorial on how to make a program that I *invented* on Microsoft Visual Basic 2010.
You need to download theĀ fourĀ files below, the cheese, the eaten cheese, the .ico file and the mp3.
Put them all where you will be able to find them.
STEP 1: Preparing
Change the form size to 310, 314
Change the icon to the cheese.ico file.
Change the text to Cheese Eater 2000
STEP 2: The Base
STEP 3: Code
Copy this code and paste it in the solution which can be found by right-clicking on Form1.vb and selecting Show code.
Public Class Form1
Private Sub cheese_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
PictureBox1.Load("[Where the file cheese1 is located]")
My.Computer.Audio.Play("[File where nom.wav is located]", _
AudioPlayMode.Background)
End Sub
End Class
Your code should now look like this:
STEP 4: Enjoy!
If you need any help, just comment in the comment section or send me a message.
NM
7 Comments
JungleMugsy 12 years ago
nfk11 13 years ago
NatNoBrains 13 years ago
nfk11 13 years ago
NatNoBrains 13 years ago
nfk11 13 years ago
NatNoBrains 13 years ago