开发者

c#-combining two forms

开发者 https://www.devze.com 2023-02-28 12:18 出处:网络
I want to combine two forms asin the image i have attached.I am able to do the two forms (login form and application form seperately)right now I am not able to make application form to appear in the b

I want to combine two forms as in the image i have attached.I am able to do the two forms (login form and application form seperately)right now I am not able to make application form to appear in the background of the login form.this is my screen i what.there is any command specific to make the two form combine as in the screen.Please help me.Thanks 开发者_如何转开发in advance

c#-combining two forms


To display a modal dialog, from your application form you can try

using(LoginForm loginForm = new LoginForm())
{
    loginForm.StartPosition = FormStartPosition.CenterParent;
    DialogResult dialogResult = loginForm.ShowDialog(this); 

    if(dialogResult == DialogResult.OK)
    {
       ...
    }
}
0

精彩评论

暂无评论...
验证码 换一张
取 消