使用C#的ASP.NET(Windows应用程序)

编程入门 行业动态 更新时间:2024-10-26 14:36:09
本文介绍了使用C#的ASP.NET(Windows应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

sir, how to go from one form to another form in asp 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应用程序)

本文发布于:2023-11-11 10:54:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1578224.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   ASP   NET   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!