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.
"Maarten" <gu******@hotmail.com> wrote in message
news:43***********************@news.skynet.be...
hi,
how can i pass data from a parrentform to a childform and reverse
or retreave data from a childform of the parentform and reverse.
Regards Maarten