Jack Jack - 1 month ago 11
C# Question

this.hide(); not work in user control

I have created a usercontrol and put this usercontrol in forms , the usercontrol has some button when user click on one button it should be close current form and open a new form , i know that this code doing job in forms

Form1 ob = new Form1();
this.Hide();
ob.Show();


but that code not working in usercontrol , any body have a solution for that ?

Answer

Guys i found My Answer and that is it the code

this.Parenthide();