black zero
Well-known member
- Joined
- Jan 15, 2009
- Messages
- 53
- Programming Experience
- Beginner
I have a 3 textboxes.
If I write anything (example: char '1') on the first box, the char would appear on the third box.
Then if I add char '2' on second textbox, the first char would appear at the first line on the third box, and char '2' would appear on the second line, below that '1'.
I am able to do it by using a function like this:
But the problem is, if the first box doesn't have anything written inside it, but the second does have char ex: '2', the third box would display '2' on the second line. I just want to have it displayed on the first line instead two...
In this example, there are only 3 boxes. But in fact, I have 20 or so textboxes
Help me fix my code.
If I write anything (example: char '1') on the first box, the char would appear on the third box.
Then if I add char '2' on second textbox, the first char would appear at the first line on the third box, and char '2' would appear on the second line, below that '1'.
I am able to do it by using a function like this:
VB.NET:
textbox3.text = textbox1.text & vbCrLf _
& textbox2.text
But the problem is, if the first box doesn't have anything written inside it, but the second does have char ex: '2', the third box would display '2' on the second line. I just want to have it displayed on the first line instead two...
In this example, there are only 3 boxes. But in fact, I have 20 or so textboxes
Help me fix my code.