Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is InteractiveChange event in .NET textbox?
Message
 
 
À
28/01/2010 13:33:18
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01446338
Message ID:
01446385
Vues:
37
>>Hi,
>>
>>Is there an equivalent of VFP textbox InteractiveChange event in WinForms? Here is why I am asking.
>>
>>I see that the OnTextChanged method of WinForm textbox fires every time the DataGridView is scrolled or every time a MoveXXX() method of binding source is called. And I want the "OnTextChanged" only to fire if a user changes the entry/value by way of keyboard or mouth.
>>
>>TIA for any suggestions.
>
>You can't stop it firing - it's baked in and that's the way it is. Maybe hook the KeyPress or KeyDown instead ?

Thank you for the idea. I will try it. Or will look for ways to un-hook the OnTextChanges when grid changes position. I already created a method OnPositionChanged and hooked to the BindingSource PositionChanged event. Now I need a way to "globally" unhook the OnTextChanged and then hoot it again. I am going to be Googling the rest of the day :).
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform