Thank's for the answers, they where not what i expected, but helped me much
more
than i expected.
i'm beginning to have a clear view on object orientated programmaing.
now i'm facing an other problem.
here is my code:
on a parrentform:
using UCAnalog;
namespace frmsettings
{
public class settings : System.Windows.Forms.Form
{
private void button2_Click(object sender, System.EventArgs e)
{
Analog an = new Analog();
an.listsetup();
this.Close();
}
}
}
on a usecontrol ;
namespace UCAnalog
{
public class Analog: System.Windows.Forms.UserControl
{
public void listsetup()
{
MessageBox.Show(test");
lstout.Items.Add ("Channel ",false);
}
}
}
I know the function listsetup in the class analog is called because the
messagebox gets activated.
but the item won't add in the checkedlistbox.
hope someone can help me.
greets Maarten.