Introduction: 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
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
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
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]", _
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.
We have a be nice policy.
Please be positive and constructive.