当单击第一个按钮中的一个按钮时,我希望弹出另一个表格! [英] When clicking on a button in the first button I want another form to pop up!
本文介绍了当单击第一个按钮中的一个按钮时,我希望弹出另一个表格!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何在运行时在两种形式之间传递值.
例如,假设我在表单上有一个按钮可以登录……现在,当我单击它时,如果用户名和密码正确,那么我想要另一个表单弹出并向我显示在我的表格中找到的信息数据库!如果用户名和密码不正确,那么我想要一个消息框,说明访问被拒绝!任何帮助plzzzzz:confused :: rose:
I''d like to know how it is possible to pass values between two forms on Runtime.
For example, suppose I have a button on a form to log in ... now when I click on it, if the username and pass are correct then I want another form to pop up and show me the information found in a table in my database! And if the username and pass are wrong, then I want a message box saying access denied! Any help plzzzzz :confused::rose:
推荐答案
创建表单对象并调用Show()方法
create object of form and call the Show() method
myForm frm=new myForm();
frm.Show();
去读一本书.
真是浪费时间.
Go read a book.
What a waste of time.
这篇关于当单击第一个按钮中的一个按钮时,我希望弹出另一个表格!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文