从一种形式重定向到另一种形式

问题描述:

朋友,
我正在开发一个小的Windows应用程序.在这种情况下,我从一种形式重定向到另一种形式.......
如何在C#.net

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

使用以下代码从一种形式导航到另一种形式.
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


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


关闭当前表单-this.Close()
为另一种形式创建对象并调用formObject.Show()方法.


Close the current form - this.Close(),
Create object for another form and call formObject.Show() method.


2010年3月写道:
sree 2010 wrote:

请给我一个示例,从一种形式导航到另一种形式

please give me one example to navigate from one form to another


^ ]

[/Edit]


Try this![^]

[/Edit]