如何链接两种形式 [英] How to link two form
本文介绍了如何链接两种形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要链接我的日志表单和form2.当输入正确的paswrd和usrname shuold load 2n表单时.请帮助我.Tax
I need link my loging form and form2.When enter correct paswrd and usrname shuold load 2n form.Pls pls help me.Tax
推荐答案
查看此CodeProject提示/技巧对您没有帮助:
C#Apps中的多个后续主"表单 [ ^ ]
See if this CodeProject tip/trick doesn''t help you:
Multiple Subsequent "Main" Forms in C# Apps[^]
这些示例应该可以帮助您-
http://www.techrepublic.com/article/manipulate-instances- of-windows-forms-in-c/1053742 [ ^ ]
http://www.techotopia.com/index.php/Hiding_and_Showing_Forms_in_C_Sharp [
These samples should help you out -
http://www.techrepublic.com/article/manipulate-instances-of-windows-forms-in-c/1053742[^]
http://www.techotopia.com/index.php/Hiding_and_Showing_Forms_in_C_Sharp[^]
要显示任何表格,您可以使用Show()
方法.只需使用IF..Else
条件检查您的有效登录名,如果登录名有效,则只需显示Form.例如:
To display any Form you can useShow()
method.Just Check your Valid Login usingIF..Else
condition and if Login is valid then simply display Form.Example :
If txtPassword.Text = "12345678" Then
Form1.Show() 'Display Form1 If Valid Login
Else
MessageBox.Show("Invalid Password")
End IF
这篇关于如何链接两种形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文