B
Blacky
Hi
I have a small form with a listbox. When double clicking on an item, the
item is added to another form and then the form is closed. But this creates
an exception error saying that the ListBox does not excist.
How do I fix this?
Thank You
I have a small form with a listbox. When double clicking on an item, the
item is added to another form and then the form is closed. But this creates
an exception error saying that the ListBox does not excist.
How do I fix this?
Thank You
Code:
(the other form)
create dialog
frmSuppliers frmSupp = new frmSuppliers();
base.Enable = false;
frmSupp.Closing += ....(frm_closing);
frmSupp.Show();
....frm_closing( [arguments])
{
txtSupplier.Text = frmSupp.GetSupplier();
base.Enable = true;
}
(the form with listbox)
.....DoubleClick( ....)
{
txtSuppName = lst.ItemSelected.ToString();
this.Close();
}