要用就少在那機掰
Would you like to react to this message? Create an account in a few clicks or log in to continue.

身份證 2010 10 13

向下

身份證 2010 10 13 Empty 身份證 2010 10 13

發表  stty0910 周三 10月 13, 2010 4:23 pm

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim CHKVAL As Byte
If TextBox1.Text.Length = 10 And IsNumeric(Microsoft.VisualBasic.Right(TextBox1.Text, 9)) Then
Label2.Text = ""
CHKVAL = Mid(TextBox1.Text, 2, 1)
Label2.Text = "輸入身份證為:"
Label2.Text &= IIf(CHKVAL = "1", "男性", "女性")
Else
MsgBox("請檢查輸入資料", MsgBoxStyle.Information + MsgBoxStyle.OkOnly, "錯誤訊息")
TextBox1.Clear()
End If
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End
End Sub
End Class

stty0910
終極管理員
終極管理員

文章數 : 68
注冊日期 : 2010-08-06
年齡 : 30
來自 : 地球某個角落

https://bear.666forum.com

回頂端 向下

回頂端


 
這個論壇的權限:
無法 在這個版面回復文章