Temporary disable text edit change event? [solved]
-
I am using text edit box change event to retrieve data from database. When user types in partial text and the SQL returns only one record I would like to insert that data back to the edit text box with some modifications. Inserting the data back generates a change event and puts the program in tailspin. Is it possible to selectively disable the change event? Thanks for your help. Vaclav -- Modified Monday, June 13, 2011 4:49 PM
-
I am using text edit box change event to retrieve data from database. When user types in partial text and the SQL returns only one record I would like to insert that data back to the edit text box with some modifications. Inserting the data back generates a change event and puts the program in tailspin. Is it possible to selectively disable the change event? Thanks for your help. Vaclav -- Modified Monday, June 13, 2011 4:49 PM
- Yes, if you sent a specfic format ( like only numbers) to the sql 2) The best way is to use different control to be safer side, since this will avoid problems down the road. HTH
-
I am using text edit box change event to retrieve data from database. When user types in partial text and the SQL returns only one record I would like to insert that data back to the edit text box with some modifications. Inserting the data back generates a change event and puts the program in tailspin. Is it possible to selectively disable the change event? Thanks for your help. Vaclav -- Modified Monday, June 13, 2011 4:49 PM
-
I would go for setting a flag in the auto complete function, if that's what you're doing, and checking/clearing it in the event handler.