I am trying to display the message box as per the textbox i am getting the error, anybody please help on this :
namespace WindowsApplication7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.label1.Text = textBox1.Text;
}
private void label1_TextChanged(object sender, EventArgs e)
{
if (int.Parse(label1.Text) >= 120)
{
MessageBox.Show("Dot Net Perls is awesome.",
"Important Message");
}
}
}
}