EDN Admin
Well-known member
Form1 has a listbox with several entries. I need to transfer these entries to TextBox on form 2
<pre class="prettyprint <span class="x_x_Apple-tab-span" style="white-spacere Convertor^ form2 = gcnew Convertor();
<span class="x_x_Apple-tab-span" style="white-spacere for (int i = 0; i < listBox1->Items->Count; i++){
<span class="x_x_Apple-tab-span" style="white-spacere String^ temp = listBox1->Items->ToString();
<span class="x_x_Apple-tab-span" style="white-spacere form2->textBox1->Text = temp; <span class="x_x_Apple-tab-span" style="white-spacere } <span class="x_x_Apple-tab-span" style="white-spacere form2->ShowDialog(); [/code]
If I have a list like
This
Is
My
List
Then that code only adds "List" to the textbox
Please help
View the full article
<pre class="prettyprint <span class="x_x_Apple-tab-span" style="white-spacere Convertor^ form2 = gcnew Convertor();
<span class="x_x_Apple-tab-span" style="white-spacere for (int i = 0; i < listBox1->Items->Count; i++){
<span class="x_x_Apple-tab-span" style="white-spacere String^ temp = listBox1->Items->ToString();
<span class="x_x_Apple-tab-span" style="white-spacere form2->textBox1->Text = temp; <span class="x_x_Apple-tab-span" style="white-spacere } <span class="x_x_Apple-tab-span" style="white-spacere form2->ShowDialog(); [/code]
If I have a list like
This
Is
My
List
Then that code only adds "List" to the textbox
Please help
View the full article