c# - TextBox Changed event -
instead of calling function when text box changed. want wait until word entered string. code have written not seem work. can inform me f right approach this.
private void txtconsole_textchanged(object sender, eventargs e) { string fastmodetest = ""; if (fastmodetest.indexof("adr=") > -1) { testroutine2(); } }
private void txtconsole_textchanged(object sender, eventargs e) { if (txtconsole.text != "someword") return; // rest }
this code cancel function if key not entered.
c#
No comments:
Post a Comment