Jack Jack - 2 months ago 15
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();

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


Guys i found My Answer and that is it the code