locked
TextBox RRS feed

  • Question

  • Which event occurs immediately after the TextChanged()?

    MJ_Developer.

    Wednesday, July 17, 2013 7:56 PM

Answers

All replies

  • I don't think that anything happens once this event occurs until the user does something else on the application.  The IsKeyboardFocusedChanged should fire the next time the user does anything, although this is probably not useful to you.  After that, it depends on what the user does whether it would be a PreviewKeyDown (typing), PreviewLostKeyboardFocus (mouse click onto another textbox), etc. 

    What are you trying to do after the text is changed?


    Christine A. Piffat

    Wednesday, July 17, 2013 8:18 PM
  • Which event occurs immediately after the TextChanged()?

    MJ_Developer.

    You can go here for texbox events:

    http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox_events.aspx

    I believe there are also KeyUP, KeyDown events... You can put in your Load event somthing like TextBox1.Attributes.Add("onkeyup", "YourCodeBehindFunction()"); to test each event in debug mode to see which order they fire.

    • Edited by PaulDAndrea Wednesday, July 17, 2013 10:12 PM update
    • Marked as answer by Caillen Wednesday, July 24, 2013 11:17 AM
    Wednesday, July 17, 2013 10:03 PM
  • Override WndProc for the TextBox and its Parent to find out for you particular implementation.
    Wednesday, July 17, 2013 10:58 PM