vb6.0中,判断文本框中是否输入文本,如果是则弹出提示框"是否继续运行“,并且有”是“”否“两个选项,求
展开全部
Private Sub TextBox1_KeyPress1(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If e.KeyChar >= "A" And e.KeyChar <= "Z" Or e.KeyChar >= "a" And e.KeyChar <= "z" Then e.Handled = False Else MessageBox.Show ("只能输入字母!") e.Handled = True Exit Sub End IfEnd Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询