Link to home
Start Free TrialLog in
Avatar of Barako2
Barako2

asked on

Text Clear

How do you clear a textbox after you made an invalid entry: ie use a messageBox OK button to clear textbox.
ASKER CERTIFIED SOLUTION
Avatar of ptakja
ptakja
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If MessageBox.Show("Press OK to clear Textbox", "Clear TextBox", MessageBoxButtons.OK, MessageBoxIcon.Question) = DialogResult.OK Then
   TextBox1.Text = String.Empty
End If
Avatar of Barako2
Barako2

ASKER

Textbox1.Text = String.Empty  Works better for my application Thanks man.