使用C#的ASP.NET(Windows应用程序) [英] asp.net with c#(windows application)

查看:70
本文介绍了使用C#的ASP.NET(Windows应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,
如何使用c#(Windows应用程序)在asp.net中从一种形式转换为另一种形式

sir,
how to go from one form to another form in asp.net with c#(windows application)

推荐答案

取决于您要执行的操作:如果是启动形式您将要离开的地方,然后关闭它,您的应用程序将结束.

Depends what you are trying to do: If it is the startup form that you are going from, then if you close it, your application will end.

formSecond second = new formSecond();
second.Show();

将显示一个新表格,两者都将可用.

Will display a new form, and both will be usable.

formSecond second = new formSecond();
second.ShowDialog();

将显示一个新表单,直到关闭第二个表单,第一个表单才可用.

Will display a new form, and the first will not be usable until the second is closed.

formSecond second = new formSecond();
Hide();
second.ShowDialog();
Show();

将看起来像您的第一个已关闭,然后显示第二个,然后在第二个关闭时重新显示第一个.

如果这不能满足您的要求,您想做什么?

Will look as is your first has closed, then show the second, then re-display the first when the second closes.

If this doesn''t cover what you want to do, what do you want to do?


这篇关于使用C#的ASP.NET(Windows应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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