private void button1_Click(object sender, EventArgs e) { String ln = textBox1.Text; if (!ln.StartsWith("<") && !ln.EndsWith(">")) { MessageBox.Show("Ikke korrekt HTML tag"); return 0; } else { MessageBox.Show("Wuhu"); } }