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)?
2 Replies - 577 Views - Last Post: 18 April 2012 - 11:05 AM
#1
Visual Studio 2005 c# equivalent of VB's Me.Hide and [Form Name].S
Posted 18 April 2012 - 02:21 AM
Replies To: Visual Studio 2005 c# equivalent of VB's Me.Hide and [Form Name].S
#2
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)...
And why are you using VS 2005? You can get the Express version of VS 2010 for free.
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.
#3
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
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|