用VB编写一个程序,输入用户名和密码后按回车没有反应,怎么弄呢?
代码如下:
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
If Text1 = "XXX" And Text2 = 1234 Then
Form1.Show
Form2.Hide
Else
Text2 = ""
Text2.SetFocus
End If
End If
End Sub
代码如下:
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
If Text1 = "XXX" And Text2 = 1234 Then
Form1.Show
Form2.Hide
Else
Text2 = ""
Text2.SetFocus
End If
End If
End Sub
解决方案 »
- listview点击listitem触发itemclick事件后,这个item为什么一直跟着光标了?
- 这个代码怎么在2003里面无效呢?
- 请问,如何检测局域网中某台计算机是否已连通?
- 鼠标事件
- 关于 rs.CursorLocation = adUseClient
- 程序做完了,到那里发布啊?咋个发布法呢?oooooooooooooo?咋办呢?ooo?
- 关于 command 控件的问题!
- mshflexgrid换行的问题
- winsock.getdata 接收的数据出错,为什么呀?
- 100分关于vb报表问题:怎样用Data Report创建动态查询数据报表,而且字段不固定
- 用VB将excel中的一列数据生成一个数组,放到指定的单元格
- 有向图
If Text1 = "XXX" And Text2 = "1234" Then
Form1.Show
Form2.Hide
Else
Text2 = ""
Text2.SetFocus
End If
End If
貌似应该是Form2.show吧?