Visual Basic 2010文本框显示 [英] Visual Basic 2010 Textbox Displaying

查看:76
本文介绍了Visual Basic 2010文本框显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何链接"按钮和文本框?现在,我正在测试一个密码存储程序,在该程序中,用户必须首先输入用户名和密码,两个文本框都分别,然后面板可见,并带有选择帐户"标签,其后是一个将具有多个不同帐户的列表框,然后在该帐户下方选择一个按钮,当该人单击某个选项时,必须单击选择按钮.在这些标签旁边(也在面板上)是3个标签和3个只读文本框,标签上分别写有帐户名称",登录"和密码",每个标签下面都有1个文本框.当用户单击列表框下的帐户并单击选择"时,我想要正确的帐户名(与列表框相同),该帐户的登录名和该帐户的密码.因此,基本上有两个问题,将用户名和密码开头链接到必须正确登录的位置,否则会出现一个消息框,提示"Login Incorrect"(登录错误),但是如果他们具有正确的登录名,则面板将变为可见并显示在页面旁边.下一个问题是有关列表框和链接按钮,以及将按钮链接到3个只读文本框的问题.我该怎么做呢?到目前为止,我添加了一个示例,列表框下方有1个项目,即"banana1".帐户名是Banana2(所以我在使用它时不会感到困惑,一旦程序完成,我将对其进行更改),用户名是"pickle",密码是"potato123".帮助,请吗?

How do you "Link" a button and a text box? Right now, I''m testing around with a password storing program where the user must first type a user name and password,both separate text boxes,then a panel becomes visible,with a label that says "Choose an account",followed by a list box that will have multiple different accounts,then a button below that to select them,to where when the person clicks an option,they must click the select button. Next to those(also on the panel) are 3 labels and 3 read only text boxes, the labels say "Account Name","Login",and "Password",there is 1 text box below each of those. When the user clicks the account under the list box and clicks "select",I want the correct account name(same as in the list box),that account''s login,and that account''s password. So basically have 2 questions,linking the username and password in the beginning to where it must be the correct login or else a message box will come up saying something like "Login Incorrect",but if they have the correct logins,the panel will become visible and show up next to the page. The next question is about the list box and linking the button,and linking the button to the 3 read only text boxes. How do I do this? So far,I added an example,there is 1 item under the list box,which is "banana1". The accountname is Banana2(so I don''t get confused while I work on it,I will change it once I am done with the program),the user name is "pickle",and the password is "potato123". Help,please?

推荐答案

借助Wes注释,OP能够解决它.将其发布以将其从未答复的列表中弹出.
With help of Wes comments, OP was able to resolve it. Posting this to pop it out of unanswered list.


这篇关于Visual Basic 2010文本框显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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