Click here to Skip to main content
15,880,956 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How Do i Validate and convert to date Pin
koolprasad200315-May-07 23:12
professionalkoolprasad200315-May-07 23:12 
GeneralRe: How Do i Validate and convert to date Pin
Vimalsoft(Pty) Ltd15-May-07 23:16
professionalVimalsoft(Pty) Ltd15-May-07 23:16 
AnswerRe: How Do i Validate and convert to date Pin
koolprasad200315-May-07 23:30
professionalkoolprasad200315-May-07 23:30 
GeneralRe: How Do i Validate and convert to date Pin
Vimalsoft(Pty) Ltd15-May-07 23:49
professionalVimalsoft(Pty) Ltd15-May-07 23:49 
AnswerRe: How Do i Validate and convert to date Pin
Xandip16-May-07 0:04
Xandip16-May-07 0:04 
GeneralRe: How Do i Validate and convert to date Pin
Vimalsoft(Pty) Ltd16-May-07 1:14
professionalVimalsoft(Pty) Ltd16-May-07 1:14 
AnswerRe: How Do i Validate and convert to date Pin
Sonia Gupta16-May-07 1:38
Sonia Gupta16-May-07 1:38 
AnswerRe: How Do i Validate and convert to date Pin
Xandip16-May-07 2:10
Xandip16-May-07 2:10 
Private Sub Command1_Click()
On Error Resume Next
Dim Temp As String
If Len(Text1) = 8 Then
Temp = Mid(Text1, 1, 2) & "/" & Mid(Text1, 3, 2) & "/" & Mid(Text1, 5, 4)
If CDate(Temp) > Now Then
MsgBox "Invalid Date"
Else
MsgBox CDate(Temp)
End If
End If
If Len(Text1) = 10 Then
If CDate(Text1) > Now Then
MsgBox "Invalid Date"
Else
MsgBox CDate(Text1)
End If
End If
End Sub

Private Sub Form_Load()
Text1.MaxLength = 10
End Sub



Try this... hope it helps..
GeneralRe: How Do i Validate and convert to date Pin
Vimalsoft(Pty) Ltd16-May-07 2:20
professionalVimalsoft(Pty) Ltd16-May-07 2:20 
QuestionHow to read word document pagewise...! Pin
koolprasad200315-May-07 21:18
professionalkoolprasad200315-May-07 21:18 
AnswerRe: How to read word document pagewise...! Pin
Xandip16-May-07 0:32
Xandip16-May-07 0:32 
GeneralRe: How to read word document pagewise...! Pin
koolprasad200316-May-07 1:18
professionalkoolprasad200316-May-07 1:18 
GeneralRe: How to read word document pagewise...! Pin
Xandip16-May-07 2:33
Xandip16-May-07 2:33 
AnswerRe: How to read word document pagewise...! Pin
Dave Kreskowiak16-May-07 3:58
mveDave Kreskowiak16-May-07 3:58 
Questiondifferent languages for textbox controls Pin
vandanapdeo15-May-07 20:54
vandanapdeo15-May-07 20:54 
AnswerRe: different languages for textbox controls Pin
Dave Kreskowiak16-May-07 3:55
mveDave Kreskowiak16-May-07 3:55 
QuestionHow to disable Ctrl P keys in vb.net(for my application only) Pin
koolprasad200315-May-07 20:49
professionalkoolprasad200315-May-07 20:49 
AnswerRe: How to disable Ctrl P keys in vb.net(for my application only) Pin
Sonia Gupta15-May-07 21:38
Sonia Gupta15-May-07 21:38 
GeneralRe: How to disable Ctrl P keys in vb.net(for my application only) Pin
koolprasad200315-May-07 23:09
professionalkoolprasad200315-May-07 23:09 
AnswerRe: How to disable Ctrl P keys in vb.net(for my application only) Pin
Xandip16-May-07 0:26
Xandip16-May-07 0:26 
AnswerRe: How to disable Ctrl P keys in vb.net(for my application only) Pin
Dave Kreskowiak16-May-07 3:50
mveDave Kreskowiak16-May-07 3:50 
QuestionError Type Mismach Pin
Vimalsoft(Pty) Ltd15-May-07 20:37
professionalVimalsoft(Pty) Ltd15-May-07 20:37 
QuestionRe: Error Type Mismach Pin
CPallini15-May-07 20:41
mveCPallini15-May-07 20:41 
AnswerRe: Error Type Mismach Pin
Vimalsoft(Pty) Ltd15-May-07 21:07
professionalVimalsoft(Pty) Ltd15-May-07 21:07 
GeneralRe: Error Type Mismach Pin
ChandraRam15-May-07 21:23
ChandraRam15-May-07 21:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.