Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0
hi friends,
i am developing a small windows application. In that i am redirect from one form to another form.......
how can i redirect from one form to another form in C#.net
Posted 23-May-10 20:55pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Use the following code to navigate from one form to another.
Form2 obj1 = new Form2();
obj1.Show();
this.Hide();
For more details visit:Navigating from one form to another
  Permalink  
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

this.Hide();
Form2 f2 = new Form2;
f2.Show();
  Permalink  
v2
Comments
Toniyo Jackson at 21-Apr-11 5:17am
   
Added pre tag
kittytaneja at 26-Nov-13 5:17am
   
sir i want oneForm automatically timeout and redirect to loginForm... but little bit change that is i want to give specific time suppose 20 min. same i ill give but if i ill touch my mouse than timer should be start from starting(means 0) and if i ill not touch my mouse last 20 min it will automatically come back to login page please help me for that and provide me code for only windows forms in .net applicatioin
honey4bee at 29-Jul-11 3:49am
   
its working............
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Close the current form - this.Close(),
Create object for another form and call formObject.Show() method.
 
[Edit]
sree 2010 wrote:
please give me one example to navigate from one form to another

Try this![^]
 
[/Edit]
  Permalink  
v2
Comments
sree 2010 at 24-May-10 2:13am
   
please give me one example to navigate from one form to another
sree 2010 at 24-May-10 2:20am
   
thank you
Prasanta_Prince at 21-Apr-11 5:39am
   
Good Solution.
Ankur\m/ at 21-Apr-11 5:49am
   
Saying good solution doesn't help anyone. You should vote up a good solution so that the future users find the answer fast and easy.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 12 Jan 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100