pastebin - collaborative debugging tool
kpaste.net RSS


lolwut Source Code
Posted by Anonymous on Sun 26th Sep 2010 08:03
raw | new post

  1. Public Class Form1
  2.     Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonX1.Click
  3.         'This is what happens when the Hello button is clicked.
  4.        If TextBoxX1.Text = "Yellow" Then 'Looks if the text box says Yellow. If it does it reads the next line of code.
  5.            If CheckBoxX2.Checked Then 'If Check Box 2 is checked, it will
  6.                MessageBox.Show("Hello") 'make a message box reading Hello.
  7.            End If
  8.             MessageBox.Show("You Typed Yellow!") 'This line is always read if the text box says Yellow because there is no If statement.
  9.            If CheckBoxX1.Checked Then 'If check box 1 is checked, it will
  10.                MessageBox.Show("Goodbye") 'make a messagebox reading goodbye.
  11.            End If
  12.         Else : MessageBox.Show("Please type Yellow into the text box") 'This in continued from the first line of code. If the textbox
  13.            'does not read Yellow, it performs only this line of code.
  14.        End If
  15.     End Sub
  16.  
  17.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  18.         MessageBox.Show("Welcome To Teh Program!") 'This is what happens when Form 1 loads.
  19.        MessageBox.Show("Made by Dylan! :D")
  20.     End Sub
  21.  
  22.    
  23.     Private Sub RatingStar1_RatingChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RatingStar1.RatingChanged
  24.         MessageBox.Show("Thanks for the rating!") 'When the rating is changed it shows a message box.
  25.    End Sub
  26.  
  27.  
  28. End Class

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at