i’m working in a c# windows application with vs2010 and a local database.In one of my forms, I’m using a bindingNavigator and i have inserted some Textboxes where some of those need to be filled with integers only.
The problem is that when i’m deleting all data inside from one of those textboxes, mouse is locked and i cannot move to another textbox or shut down the programm unless at least one number is inserted in the textbox. How can i make it autocomplete itself with 0 when nothing is inserted and be able to continue to navigate into the programm?
The solution was simple really, the problem was in the textbox.Text==null expression. In the Leave event of the textbox i just used the code: