Quote Originally Posted by JugglingReferee View Post
vb.net Code:
  1. Private Sub btnButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnButton1.Click
  2.     If TextBox1.Text = "" Then
  3.         MessageBox.Show("You need to enter a text", "Missing Information", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)
  4.     End If
  5. End Sub
Thank you so much! +rep