Z
zul hayat
Guest
I have a form, having tab control. Forms directly open in tab control as tab page. when i want to get data from child form to parent form. It gave error on owner ship of the form. Now i have changed the ownership of the form but still i cant get the value from child form to parent form.
My Code is:
when I opened the child form
private void button11_Click(object sender, EventArgs e)
{
using (New_Category new_Category = new New_Category("ProductDefinition"))
{
new_Category.ShowDialog();
}
}
Now from this child form i want to retrieve the value to parent form. the code is given below:
Product_Defination prod = new Product_Defination("","");
Main_form main = new Main_form("", "");
prod.Owner = main;
prod.get_productid_notifyme(Product_id);
Continue reading...
My Code is:
when I opened the child form
private void button11_Click(object sender, EventArgs e)
{
using (New_Category new_Category = new New_Category("ProductDefinition"))
{
new_Category.ShowDialog();
}
}
Now from this child form i want to retrieve the value to parent form. the code is given below:
Product_Defination prod = new Product_Defination("","");
Main_form main = new Main_form("", "");
prod.Owner = main;
prod.get_productid_notifyme(Product_id);
Continue reading...