vb.net - Populating a textbox, if another textbox is populated -
i've got 2 textboxes in form.
according title, when write in 1 textbox (a random one), need @ same time, in other textbox text (given in code) appears. 1 letter 1 letter
1)example random text:
1 textbox ) how you?
2 textbox) let's c
2)example random text:
1 textbox ) aim of project?
2 textbox) let's chill out mome
thanks much
you need determine responses questions. however, tackle letter letter problem. use substring method , length of current text.
dim response string = "hello world!" private sub text(byval..) handles textbox1.changed textbox2.text = response.substring(0, textbox1.text.length) end sub
as text changes in textbox typing in, output response corresponding length of text input. since event textbox.changed, each character entered update second textbox
Comments
Post a Comment