Hello,
I'm building a solution using Visual Studio Windows Forms and I'm coding in C#.
I have a windows form with databinded textboxes, comboboxes and a datagrid. Everything works fine until a user enter a wrong value in a textbox binded to a numeric field on the form. There is no way to get back to the old value by pressing escape (canceling changes).
Strangely, this works fine with the datagridview columns: if there is an error in a field, the user can simply hit escape and the cell gets back to its original value.
Is there any way I can do that with common form textboxes?
Thanks,
Justin
I'm building a solution using Visual Studio Windows Forms and I'm coding in C#.
I have a windows form with databinded textboxes, comboboxes and a datagrid. Everything works fine until a user enter a wrong value in a textbox binded to a numeric field on the form. There is no way to get back to the old value by pressing escape (canceling changes).
Strangely, this works fine with the datagridview columns: if there is an error in a field, the user can simply hit escape and the cell gets back to its original value.
Is there any way I can do that with common form textboxes?
Thanks,
Justin
Comment