Introduction: How to Make a Cheese Eating Program on Visual Basic

Picture of How to Make a Cheese Eating Program on Visual Basic

Hi,
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

Picture of Preparing

Create a new Windows Forms Application and call it CheeseEater.
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

Picture of The Base

Select PictureBox from the toolbox. In properties go to Dock, then press the big middle one or fill. Then select image then find the cheese0 file. It should now look like the picture below:

Step 3: Code

Picture of 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!

OK, this was kinda pointless, but I'm new to VB.
If you need any help, just comment in the comment section or send me a message.
NM

Comments

JungleMugsy (author)2011-12-30

Hahaha eating cheeze. This is great!

nfk11 (author)2011-03-02

how do you make a new program

NatNoBrains (author)nfk112011-03-02

On the start page, click file, new.

nfk11 (author)NatNoBrains2011-03-02

where

NatNoBrains (author)nfk112011-03-02

top left corner

nfk11 (author)NatNoBrains2011-03-02

its not in the top left corner

NatNoBrains (author)nfk112011-03-02

...

About This Instructable

1,920views

4favorites

License:

Bio: I am not your average teenager. I like a lot of stuff, and will be posting some more stuff soon. I spend a lot of ... More »
Add instructable to: