Textbox.TextChanged

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rachaun
    New Member
    • Dec 2011
    • 1

    Textbox.TextChanged

    Help,

    I am using Visual Studio 10 and have run in to an issue that I cannot resolve on my own. When debugging one of my forms the app hangs on a text box control with no errors. But only if you change the text, or press the "Tab" key. The text box is in a group box with a range of other text boxes most with the same properties. All of the controls in this group are connected to an access database record, and formatted to accept the same type(s) of input.

    Here is the code associated with the control;

    [/Private Sub MPhoneTxt_TextC hanged(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MPhoneTxt.TextC hanged
    If UpdateCmd.Enabl ed = False Then
    Me.UpdateCmd.En abled = True
    End If
    End Sub]

    Please, someone tell me what I am doing wrong before I die of sleep deprivation. Let me know if you need the code for the entire form.

    Josh
  • Crusader2010
    New Member
    • Nov 2011
    • 13

    #2
    When/how is your textbox's Enabled property becoming FALSE? You said you made it to accept a certain input format. Are you also putting Enabled=false in there? Or somewhere else? Do you have any code in EnabledChanged event? My guess is that either it enters some kind of infinite cycle of Enabled/Disabled, or it cannot retrieve the data properly (matching your input)...

    Comment

    Working...