
12-16-2010, 03:22 PM
|
 |
Senior Contributor
Forum Leader * Expert *
|
|
Join Date: Apr 2005
Location: USA
Posts: 865
|
|
It sounds like you want to show all checked items it TextBox1...
Why not clear TextBox1.Text first, then append any strings you want shown there.
Code:
' First you need to clear the text box (NOT SHOWN)
If CheckBox1.Checked Then
TextBox1.Text = TextBox1.Text & " / " & TextBox2.Text
If CheckBox2.Checked Then
TextBox1.Text = TextBox1.Text & " / " & TextBox3.Text
' and so on...
If you aren't familiar with the & operator, read all about it.
There are also two things I'm going to bother you about : First, you need better variable names, especially when you are asking other people to look at your code. "TextBox1" doesn't tell me anything about what the text box is for. It makes the code hard to read.
Second, please put code in [code] tags.
|
__________________
C# _VB.NET _
|