从一种形式重定向到另一种形式 [英] Redirect from one form to another form

查看:83
本文介绍了从一种形式重定向到另一种形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
我正在开发一个小的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



Try this![^]

[/Edit]


这篇关于从一种形式重定向到另一种形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆