I have n number of textbox
text1.text = ""
text2.text = ""
...
table1
id txt1 txt2 txt3
01 0 0 1
02 1 1 0
.....
txt1, txt2 are bit datatype
I want to check from table1 if textbox bit is 0 then i dont want to focus the textbox, then move to next textbox if bit is 1 then i want to focus the textbox. How to do it.
For example
table1
txt1 1
txt2 0
txt3 1
textbox1.focus then textbox3.focus.
textbox2 should not focus
I which event i want to write a code leave_event or got focus event. Any suggestion
Need VB.Net code help
I would use the
Enterevent instead becauseMSDNnotes thatYou can use your logic there and call
SelectNextControlif thisTextBoxshould not get focus.