如何在c#中隐藏注册密钥表单 [英] How to hidden registration key form in c#

查看:82
本文介绍了如何在c#中隐藏注册密钥表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#做一个项目有3个表格

+注册密钥表格

+登录表格

+主表格
首先,用户必须输入序列密钥进入注册密钥表单,如果正确密钥,登录表单将显示()。

从那时起,注册将隐藏,登录表单为Show()

所以,当序列号退出并正确时如何隐藏注册表格?

i ma doing a project in c# have 3 form
+Registration key form
+Login form
+Main form
first before, user must input serial key into registration key form, if correct key, login form will show().
Since then, Registration will hidden and Login form is Show()
so, How to hidden Registration Key form when serial key is exit and correct?

推荐答案

调用Hide方法:



Call the Hide method:

LoginForm lf = new LoginForm();
Hide();
lf.ShowDialog();
Close();

这将隐藏您的注册表格,显示您的登录表格,然后在登录表格关闭时关闭注册表格。

That will hide your registration form, display your login form, then close teh registration form when the login form closes.


这篇关于如何在c#中隐藏注册密钥表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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