1 Replies - 181 Views - Last Post: 11 December 2012 - 06:02 AM Rate Topic: -----

#1 PiscesHunter  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 11-December 12

C# how to hide form using the button from the current active form

Posted 11 December 2012 - 05:59 AM

I need to hide the a form using a button from my current active form. let see for example there is two form open and I am using form2 and then form1 was inactive. i want to hide the form1 using the button from form2..could give me a hint on how to do it guyz//..ty

here is my code

namespace windowsAppication1
{
public partial class Form2:Form

public Form2()
{
initializeComponent();
}
private void button1.click(object sender, EventArgs e)
{
Form1 f1 = new Form1();
f1.hide();
}
}

Is This A Good Question/Topic? 0
  • +

Replies To: C# how to hide form using the button from the current active form

#2 no2pencil  Icon User is offline

  • Head MFIC
  • member icon

Reputation: 5066
  • View blog
  • Posts: 26,448
  • Joined: 10-May 07

Re: C# how to hide form using the button from the current active form

Posted 11 December 2012 - 06:02 AM

** Duplicate topic Closed **

Please reply to the original.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1