P
Peter Demeyer
Hi,
I want to pass a variable to a new form like this:
MyForm form1= new MyForm(customerid);
and the form is defined like this:
public MyForm(int customerid)
but I want this variable to be available in the MyForm_Load class as
well because this variable must be a comboBox's SelectedValue. If I put
"cmbBox1.SelectedValue=customerid" in the form constructor, then it's
overwritten by MyForm_Load..
I don't see how I can declare this variable outside the form
constructor.
Thanks.
I want to pass a variable to a new form like this:
MyForm form1= new MyForm(customerid);
and the form is defined like this:
public MyForm(int customerid)
but I want this variable to be available in the MyForm_Load class as
well because this variable must be a comboBox's SelectedValue. If I put
"cmbBox1.SelectedValue=customerid" in the form constructor, then it's
overwritten by MyForm_Load..
I don't see how I can declare this variable outside the form
constructor.
Thanks.