VB.net 应该跟VB一样的吧 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Randomize()
TextBox1.Text = Chr(Int(Rnd() * (126 - 33 + 1) + 33)) '产生 33-126 随机数
Select Case Asc(TextBox1.Text)
Case Asc("a") To Asc("z")
TextBox2.Text = "小写字母"
Case Asc("A") To Asc("Z")
TextBox2.Text = "大写字母"
Case Else
TextBox2.Text = "非字母"
End Select
End Sub
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。