Foxtable(狐表)用户栏目专家坐堂 → 窗口文本控件


  共有9260人关注过本帖树形打印复制链接

主题:窗口文本控件

帅哥哟,离线,有人找我吗?
狐狸爸爸
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47448 积分:251054 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2012/9/18 20:10:00 [显示全部帖子]

这个不需要这么复杂的。

 

确定按钮的代码:

 

Dim nm As String = e.Form.Controls("姓名输入框").Value
Dim ps As String = e.Form.Controls("密码输入框").Value
Dim dr As DataRow = DataTables("表B").Find("用户名 = '" & nm & "'")
If dr Is Nothing Then
    MessageBox.show("用户不存在","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
ElseIf dr("密码") <> ps Then
    MessageBox.show("密码错误","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If

[此贴子已经被作者于2012-9-18 20:10:39编辑过]

 回到顶部