i want hide , close form every form of project. mean, if in form2, @ clicking button, want form1 shown or hidden, depends of necesities. can't find way, searched everywhere oop of doing this, still can't figure out. have create new instance of every form everytime?
hmm, reshowing don't know 100% sure, hiding them should easy following code:
yourformname newyourformname = new yourformname(); newyourformname.parent = this; newyourformname.showdialog(); this.hide(); // or close it: this.close();
add button, replace yourformname form want close.
for re-show try if statement, im not @ pc atm cant check working code on that. should work.
Comments
Post a Comment