zattz
asked on
TextBox does not update dataset until you move focus off it
Hi,
If I type something into a textbox it does not update my dataset until i move the focus off the textbox with tab. If I click a menustrip button this is a problem, because the textbox is not updating the dataset.
How can I force the textbox to update?
thx
If I type something into a textbox it does not update my dataset until i move the focus off the textbox with tab. If I click a menustrip button this is a problem, because the textbox is not updating the dataset.
How can I force the textbox to update?
thx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
After some reading it seems this is normal behaviour for the textbox, so I put some code in the mouseover of the menustrip
But this event will be fired each time the a character is added to or removed from the textbox. Do you want it this way?
Another option would be to add a button next to the Textbox and give it the name Update.
Once the user has entered the required text in the textbox, he has to click on the button to update the dataset.
(Handle the click event of the button for this purpose)