TiltingCode
Programmer
I have the following form:
On this form is a list control where I want to add to the list from another class but I'll need to pass some parameters to add text to the control.
It appears I'll need to create another partial class from the other class but everything I do is coming up with errors:
There is no code referencing this control on the form where the control exists (frmABC). I don't know if this matters but am adding this comment in case it does.
I'm assuming that since MySpace2_SomeSpace is not a form the ": FORM" had to be removed?
Any help is appreciated.
Code:
namespace MySpace_SomeSpace
{
public partial class frmABC : Form
{
.....code here......
}
}
On this form is a list control where I want to add to the list from another class but I'll need to pass some parameters to add text to the control.
It appears I'll need to create another partial class from the other class but everything I do is coming up with errors:
Code:
namespace MySpace2_SomeSpace
{
public partial class frmABC(NameValueCollection FieldCollection)
{
lstCompose.Items.Add("Building " + FieldCollection["ComposePath"].ToString() + "\\" + FieldCollection["DocumentName"].ToString());
}
}
There is no code referencing this control on the form where the control exists (frmABC). I don't know if this matters but am adding this comment in case it does.
I'm assuming that since MySpace2_SomeSpace is not a form the ": FORM" had to be removed?
Any help is appreciated.