This sounds very trivial to me but I couldn't figure it out.
I am trying to change to a different window in a windows application... I would use Response.redirect like when doing a web form and ASP.NET, but this is a windows form.
So any advice or examples on how to change forms would be awesome, also when changing forms do you have to pass over objects or do they stay created since it is only a web form?
Loading

Peter Gent10 reputationPosted Jun 14, 2009, 4:46 AM EDT
Kirtan PatelRank #292 · 8.6K reputationPosted Jun 12, 2009, 8:53 PM EDT
private void button1_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.Show(); this.Hide(); }Peter Gent10 reputationPosted Jun 12, 2009, 9:04 PM EDT
I couldn't find any value to pass into Form that would let me set the form it was equal to either.
Kirtan PatelRank #292 · 8.6K reputationPosted Jun 13, 2009, 1:17 AM EDT
give me some More info about ur project
Peter Gent10 reputationPosted Jun 14, 2009, 4:22 AM EDT
I have also tried to find it using this.[FindControl(), Controls, etc.] but no luck so far.
Ondrej Masita3 reputationPosted Jun 14, 2009, 5:25 AM EDT