请帮助我-重新发布 [英] help me please - REPOST

查看:105
本文介绍了请帮助我-重新发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表格,里面有用户名和密码!我想当有人输入用户名并通过并单击登录"按钮时!如果用户名和密码正确,则会弹出一个新表格,在新表格中,我的数据库中会找到一个表,如果用户名错误,则消息框将显示访问被拒绝!

i have a form in it there is username and password ! i want when someone write the username and pass and click on the log in button ! if the username and pass are correct then a new form pop up and in the new form there is a table found in my database and if the username is wrong then message box shows access denied !

推荐答案

我刚刚注意到这是同一问题的转贴.请问一次您的问题!如果有人可以提供帮助,那么他们会提供帮助.但是,如果您只转发相同的问题,您将获得不良声誉并被忽略.

[实际上]这是您第三次发布此问题.请阅读指南,不要在论坛中发送垃圾邮件.[/edit]
I just noticed that this is a repost of the same question. Pleas, ask your question once only! If anyone can help, then they will, but if you just repost the same question you will get a bad reputation and be ignored.

[edit]Actually this is the THIRD time you have posted this question. Please read the guidelines and do not spam the forum[/edit]


我会做一些猜测.

1:您没有代码.
2:您想知道如何根据某些列表检查文本框中的信息.
3:您希望在第2步通过并访问数据库后启动表单.否则会显示一个消息框.



动笔.使您的表单具有一个文本框,并弄清楚在发生登录按钮按下事件时如何检查数据.

用if else语句检查密码是否正确,如果不能,请在消息框中告知密码是否正确.如果是,请启动一个新表单并让该表单从数据库中获取表.

如果您不知道如何做这些事情,请开始寻找.
我什至会给你一个起点.
http://www.functionx.com/vcsharp/controls/textbox.htm [ ^ ]
I''ll take a few guesses.

1: You have no code.
2: You want to know how to check info put in a textbox against some list.
3: You want a form to be started after step 2 passes and a database is accessed. Otherwise a messagbox will show.



Start writing. Make your form have a text box, and figure out how to check the data when the log in button pressing event happens.

Have an if else statement checking to see if the password is okay, if not, make the messagebox tell them no. If yes, start a new form and have that form get the table from the database.

If you don''t know how to do these things, start looking.
I''ll even give you a start point.
http://www.functionx.com/vcsharp/controls/textbox.htm[^]


这篇关于请帮助我-重新发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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