Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

.NET GUI Realtime data save, WinForms

views
     
TSAnime4000
post Sep 28 2018, 04:09 PM, updated 6y ago

Regular
******
Senior Member
1,917 posts

Joined: Jul 2009
From: /dev/null


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
post Sep 28 2018, 07:45 PM

Look at all my stars!!
*******
Senior Member
2,641 posts

Joined: Jan 2003
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.

 

Change to:
| Lo-Fi Version
0.0117sec    0.47    5 queries    GZIP Disabled
Time is now: 28th March 2024 - 07:35 PM