Link to home
Start Free TrialLog in
Avatar of zattz
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
ASKER CERTIFIED SOLUTION
Avatar of JohnBobH
JohnBobH

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
Handle the textChanged event.

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)
Avatar of zattz
zattz

ASKER

After some reading it seems this is normal behaviour for the textbox, so I put some code in the mouseover of the menustrip