成功登录后如何关闭主表单(登录表单),并且不应该关闭应用程序 [英] How to close main form(login form) after successfully login and it should not close the application

查看:150
本文介绍了成功登录后如何关闭主表单(登录表单),并且不应该关闭应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何关闭主要表格i.登录后的电子登录表单,它不应关闭application

How to close main form i. e login form after login and it should not close application

推荐答案

来自Google结果:

http://www.dreamincode.net/forums/topic/97089-main -form-closing-after-login/ [
From Google results:

http://www.dreamincode.net/forums/topic/97089-main-form-closing-after-login/[^]

The last answer might help.


请先检查您的表单名称,如果还可以,请尝试以下操作.我可能是错的,但我想它可能会起作用.

如果mainform.show()则
loginform1.close()
其他
...
如果
check your form name first, if it is alright then try the following. I may be wrong but i guess it might work.

if mainform.show()then
loginform1.close()
else
...
end if


真的很简单就结束.您的主要来源不应该是您的登录表单.

您的主要形式应该是应用程序的主要形式.它应该确定需要登录,然后创建并显示登录表单.
Simple really. You main from should NOT be your login form.

Your main form should be, well, the main form of your application. It should determine that a login is required, then create and show the login form.


这篇关于成功登录后如何关闭主表单(登录表单),并且不应该关闭应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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