2 Replies - 577 Views - Last Post: 18 April 2012 - 11:05 AM Rate Topic: -----

#1 mazemutaze  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-April 12

Visual Studio 2005 c# equivalent of VB's Me.Hide and [Form Name].S

Posted 18 April 2012 - 02:21 AM

I've only ever coded in VB, now I have to do it in c# visual studio 2005. What is the coding to have a button show the next form when it is clicked (and possibly hide the current form i.e. the form on which the button lies)?
Is This A Good Question/Topic? 0
  • +

Replies To: Visual Studio 2005 c# equivalent of VB's Me.Hide and [Form Name].S

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1511
  • View blog
  • Posts: 5,916
  • Joined: 21-March 08

Re: Visual Studio 2005 c# equivalent of VB's Me.Hide and [Form Name].S

Posted 18 April 2012 - 05:00 AM

You create a new instance of the form that you want to go to(or use an already existing instance)...

Form2 f2 = new Form2();
f2.Show();
this.Hide();



And why are you using VS 2005? You can get the Express version of VS 2010 for free.
Was This Post Helpful? 1
  • +
  • -

#3 mazemutaze  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-April 12

Re: Visual Studio 2005 c# equivalent of VB's Me.Hide and [Form Name].S

Posted 18 April 2012 - 11:05 AM

Thanks, Express 2010 was giving me problems. Thanks again, that worked :smile2:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1