I have many buttons and a listBox.
In every button I have a code like this: listBox1.Items.Add ("different for every button");
but if I press 2 different buttons I use 2 lines
is it possible to press 2 buttons and write the text in the same line?
like one button says: Hi
and another one say: you
and when I press both it wont say it like this:
Hi
you
but like this: Hi you
in the same line.

hope you understand what I mean.

Sam HobbsPosted Dec 30, 2011, 5:21 PM
Note that a thread can get quite lengthy when people try to guess at the requirements and the person asking the question does not provide clarification.
DavidPosted Dec 30, 2011, 3:32 PM
VulpesPosted Dec 30, 2011, 2:46 PM
If the number is even, then the item to be added to the listbox would begin on a new line.
If the number is odd, the item would be appended to the last line added.
Here's some example code:
The 4 lines of code you posted seem useless to me (you end up with textField == "0") so I'd forget them.
FroglegPosted Dec 30, 2011, 2:40 PM
Sam HobbsPosted Dec 30, 2011, 2:17 PM
Note that checkboxes are a type of button. Perhaps you should be using checkboxes for some of the buttons.
And please create separate threads for separate questions. It can be very complicated if more than one question is asked in one thread.