怎么在VB中设置按回车键,
怎么我用这个代码报错啊?有人能帮我看看不?错误提示 D:\Web\eip\customs\frmCustomsManualReportAdd.aspx.vb(61): 'SetFocus' is not a member of 'System.Web.UI.WebControls.TextBox'.
代码:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub