this should get you started:
Add a button .. say btn_Decode
in the click event
Decode(txtIDnum.text)
and then this code...
Private Sub Decode(ByVal IDnum As String)
'check to make sure its 13 chars long
If IDnum.Length <> 13 Then MsgBox("Incorrect ID. Please check and try again", MsgBoxStyle.Exclamation + MsgBoxStyle.OkOnly, "Error!") : Exit Sub
Dim DOB As String = IDnum.Substring(2, 2) & "/" & IDnum.Substring(4, 2) & "/" & IDnum.Substring(0, 2)
If Not IsDate(DOB) Then
MsgBox("The birthdate in the ID appears to be incorrect! Please re-check", MsgBoxStyle.Exclamation, "Error!")
End If
txtDate.text = DOB
Select Case IDnum.Substring(6, 1)
Case 1 To 4
rdoFemale.checked = True
Case 5 To 9
rdoMale.checked = True
End Select
txtSSS.text = IDnum.Substring(7, 3)
If IDnum.Substring(10, 1) = 0 Then
rdoC_SA.checked = True
Else
rdoC_Othr.checked = True
End If
End Sub
you will need to add the appropriate (or change the names of the) fields
let me know if you need more help