} } } FORM 2: namespace Passing_Data { public partial class Form2 : Form { public Form2(String strTextBox) { InitializeComponent(); label1.Text = strTextBox; }
I have form one with textbox and button- I enter data in textbox and click button to take me to form 2. form two has label and combobox. data displays now in label. I want to be able to enter data in textbox on form 1 and have it entered in combobox on page two. I have tried combobox1.items.add(strTextBox) in form2 _load- not working thank you