R ronell Well-Known Member Licensed User Longtime User Mar 6, 2017 #1 i want to disable the password edittext when the username edittext has no value for example: B4X: if textuser.text = "" then textpass.enabled = false else textpass.enabled = true end if i already try the code above but nothing happens
i want to disable the password edittext when the username edittext has no value for example: B4X: if textuser.text = "" then textpass.enabled = false else textpass.enabled = true end if i already try the code above but nothing happens
Eme Fibonacci Well-Known Member Licensed User Longtime User Mar 6, 2017 #2 B4X: Sub textuser_TextChanged (Old As String, New As String) textpass.Enabled=Not(New.Trim.Length=0) End Sub Upvote 0
B4X: Sub textuser_TextChanged (Old As String, New As String) textpass.Enabled=Not(New.Trim.Length=0) End Sub