Code:
'btn1 is the OK button, so it should pass the textbox(txt) value....
private void btn1_Click(System.Object sender, System.EventArgs e)
{
get{ return txt.text;}
}
'btn2 is the Clear button, so it should Clear the textbox(txt) value....
private void btn1_Click(System.Object sender, System.EventArgs e)
{
txt.text=""
}
Would this be correct???
When validating user input, whats the best form of action, to hide the panel or to dispose of it?