Outline ·
[ Standard ] ·
Linear+
.NET GUI Realtime data save, WinForms
TSAnime4000
|
Sep 28 2018, 04:09 PM, updated 6y ago
|
|
I want to rewrite my project. currently using "control leave" will cause 'update', drawback is no realtime update as user change. I thinking, this is wise to use "TextChanged + Focus", trigger when text is changing and focus (being use) then update & display data I cant use "TextChanged" alone, it will clash when user change item (re-display selected data)
|
|
|
|
Eventless
|
Sep 28 2018, 07:45 PM
|
|
QUOTE(Anime4000 @ Sep 28 2018, 04:09 PM) I cant use "TextChanged" alone, it will clash when user change item (re-display selected data) If you know that a function is going to change the content of the textbox and you don't want the event to be processed, use a flag(boolean) to skip the event handler's code. Set the flag to be true before you refresh textbox's content. Set it back to false when you are done changing the content.
|
|
|
|