C#中的新屏幕/页面 [英] New Screen/Page in C#

查看:76
本文介绍了C#中的新屏幕/页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习atm(昨天开始),需要帮助.

I'm just learning atm (started yesterday) and need a hand.

我正在制作一个显示游戏作弊功能的应用程序,只是为了学习一些东西,并想知道是否有可能做到这一点,因此我单击一个按钮,它将加载与form1相同的新页面,我可以做到这一点,所以您单击它,然后出现一个消息框,但看起来 杂乱无章,窗口中的新页面看起来会更好.

I'm making a app that display's cheats for a game just to learn a few thing and want to know if it possible to make it so I click a button and it will load a new page the same as the form1, I can make it so you click and a message box comes up but that looks messy and a new page in the window would look heaps better.

是这样的:

主页(单击按钮),转到另一页(窗体或它所调用的任何东西,但都在同一窗口中),然后在阅读完我想要的内容后在该页面中按返回"按钮以返回到主页(form1).

Main Page (click button), goes to another page (form or whatever its called but all in the same window), then in that page after I read what I want I press a 'back' button to go back to the Main page (form1).

有可能吗?

我正在使用Visual Basic C#2010

I'm using Visual Basic C# 2010

推荐答案

您在主页上是什么意思?

What you mean in the main page?

如果您在按钮上打开表单,则该表单将在您拥有的页面顶部打开.

If you open a form on button click it will open on top of the page you have.

因此form2.Show()将打开表单,并在form2的关闭按钮中单击,您可以说this.Close()/this.Hide()

So form2.Show() will open the form and in form2's close button click you can say this.Close() / this.Hide()


这篇关于C#中的新屏幕/页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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