What this code does is checks if the textbox text is "BWH is best", upon the click of the button. If it equals "BWH is best", then the MsgBox displays "Damn right!". If the text is anything but "BWH is the best", then MsgBox displays "N00b!". It is very easy to remember and anyone should be able to write this code, even if they are a beginner.
- Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
If TextBox1.Text = "BWH is the best" Then
MsgBox("Damn right!")
Else
MsgBox("N00b!")
End If
End Sub
End Class