如何使用登录表格 [英] how to use login form

查看:96
本文介绍了如何使用登录表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了登录表单和初始屏幕,MDI表单.我要在执行启动屏幕后运行,它应该显示登录表单.
我该怎么做
在此先感谢
问候

I have created login form and splash screen,MDI form. I want on running after splash screen is executed, it should display login form.
how can I do this
thanks in advance
regards

推荐答案

使启动"屏幕成为您的应用程序的启动"表单.初始屏幕完成后,使其打开您的登录"表单.如果登录成功,那么您将获得登录表单以打开您的主表单.这是基本轮廓

Make the Splash screen the Startup form for your application. When the splash scren is done, make it open up your Login form. If login is successful, then you get the login form to open up your main form. Here is the basic outline

public class splashscreen
    {
        public splashscreen()
        { }
        private void AmDone
        {
            Form login = New formLogin();
            login.Show();
            this.Close();
        }
    }
    public class formMain
    {
    }
    public class formLogin
    {
        private void LoginSuccessFul()
        {
            Form formMain = new formMain();
            formMain.Show();
            this.Close()
        }
    }




希望这对您有帮助




Hope this helps


您好,会员7882565,

从您的问题中我了解到您需要这个:

Hi Member 7882565,

What I have understood from your question that you need this :

Login Log = new Login();
Log.ShowDialog();



希望对您有所帮助,
:)



I hope this help,
:)


此Codeproject提示/技巧可能会帮助您:

C#Apps中的多个后续主"表单 [ ^ ]
This Codeproject tip/trick may help you:

Multiple Subsequent "Main" Forms in C# Apps[^]


这篇关于如何使用登录表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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