Textboxes not correctly updated after inserting text (bug?)

  • Thread starter Thread starter Philipp Sumi
  • Start date Start date
P

Philipp Sumi

Hello newsgroup

If I enter 1 character in a textbox of a user control and then set the
focus to a control outside the user control, the "Text" property of the
control still contains the old value (without the entered character). If
I enter 2 characters or set the focus to a control within the containing
user control, everything is fine.

Strange enough: If I'm monitoring Change events of the textbox, I'm
getting two events:
- The first event when the character is being entered. The text property
is fine.
- The second event when the focus gets lost. The text property now
contains the old value. As mentioned, only if I enter only one character.


Any workaround on this?

Philipp
 
Hi Ellery

There is no code sample... Just the Text_Change event handler I use to
debug the Text property of the textbox. No further code involved :-/

The problem seems to be internal...

Thanks, Philipp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top