帮我写写简单登陆框..谢谢啦!

pearzxf 2007-01-10 10:19:29
我是初学者,对VB.NET还不怎么懂,希望高手们来指教一下,谢谢啦
...全文
159 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
hzybc 2007-01-10
  • 打赏
  • 举报
回复
sql="select password from usertable where userid='" & txtUser.text & "'"
dim dr as datareader
dr= dataadapter.executeReader()
if(dr.read())
if dr("password") is nothing
msgbox "此用户名不存在"
exit sub
else
if dr("password")<>txtPassword.text then
msgbox "密码错误"
exit sub
end if
end if

16,553

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧