Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Date conversion problem!!!! Pin
Omar Mallat9-Dec-05 18:33
professionalOmar Mallat9-Dec-05 18:33 
Questionpdf 2 image with itextsharp ?? Pin
darth_toni9-Dec-05 9:25
darth_toni9-Dec-05 9:25 
QuestionHi ! Pin
abhishk2001@yahoo.com9-Dec-05 8:03
abhishk2001@yahoo.com9-Dec-05 8:03 
AnswerRe: Hi ! Pin
Brent Lamborn9-Dec-05 10:53
Brent Lamborn9-Dec-05 10:53 
Questionadd chars to text at KEYPRESS Pin
Greeky9-Dec-05 2:45
Greeky9-Dec-05 2:45 
AnswerRe: add chars to text at KEYPRESS Pin
Roy Heil9-Dec-05 7:33
professionalRoy Heil9-Dec-05 7:33 
GeneralRe: add chars to text at KEYPRESS Pin
Roy Heil9-Dec-05 7:54
professionalRoy Heil9-Dec-05 7:54 
AnswerRe: add chars to text at KEYPRESS Pin
George B Gilbert9-Dec-05 9:30
George B Gilbert9-Dec-05 9:30 
Instead of trying to anticipate all possible keystrokes that the user may press in the date textbox, I prefer to wait until the user is done and presses OK before validating the date. I let the user enter whatever they want and then edit the complete textbox contents. Here are two generic date textbox tests that I normally apply in my data editing procedure.

'** A date is required
If txtDate.TextLength <= 0 Then
MsgBox("A date is required")
txtDate.Focus()
Exit Sub
End If
'** The date must be a valid date
If IsDate(txtDate.Text) Then
'** Ensure the date is complete and properly formatted
txtDate.Text = CDate(txtDate.Text).ToShortDateString
Else
MsgBox("The date is not valid")
txtDate.Focus()
Exit Sub
End If

Another advantage of this code is that it uses the Windows region settings, so you don't have to be concerned with formatting the date correctly for the user.


Do or not do. There is no try.
Questionsetup wizard and registry handling Pin
Asim N.8-Dec-05 23:17
Asim N.8-Dec-05 23:17 
AnswerRe: setup wizard and registry handling Pin
George B Gilbert9-Dec-05 9:39
George B Gilbert9-Dec-05 9:39 
AnswerRe: setup wizard and registry handling Pin
Curtis Schlak.9-Dec-05 10:28
Curtis Schlak.9-Dec-05 10:28 
GeneralRe: setup wizard and registry handling Pin
Asim N.9-Dec-05 15:45
Asim N.9-Dec-05 15:45 
GeneralRe: setup wizard and registry handling Pin
Curtis Schlak.11-Dec-05 9:33
Curtis Schlak.11-Dec-05 9:33 
QuestionHow can I mount an image in VB.NET Pin
Weddi8-Dec-05 22:48
Weddi8-Dec-05 22:48 
AnswerRe: How can I mount an image in VB.NET Pin
Dave Kreskowiak9-Dec-05 5:47
mveDave Kreskowiak9-Dec-05 5:47 
Questionclearing a combobox Pin
microuser_20008-Dec-05 21:55
microuser_20008-Dec-05 21:55 
AnswerRe: clearing a combobox Pin
Asim N.8-Dec-05 23:19
Asim N.8-Dec-05 23:19 
GeneralRe: clearing a combobox Pin
microuser_20009-Dec-05 0:50
microuser_20009-Dec-05 0:50 
GeneralRe: clearing a combobox Pin
Asim N.9-Dec-05 2:39
Asim N.9-Dec-05 2:39 
QuestionCheck the instance of an object Pin
biglewy8-Dec-05 21:19
biglewy8-Dec-05 21:19 
AnswerRe: Check the instance of an object Pin
Asim N.8-Dec-05 23:22
Asim N.8-Dec-05 23:22 
QuestionDataBase Checking Table Exist or Not Pin
Sasmi8-Dec-05 19:51
Sasmi8-Dec-05 19:51 
AnswerRe: DataBase Checking Table Exist or Not Pin
abhinish8-Dec-05 23:38
abhinish8-Dec-05 23:38 
QuestionUsing Store Procedure that using dblink in VB.NET Pin
lucdt8-Dec-05 19:33
lucdt8-Dec-05 19:33 
QuestionHelp with a program within Network Programming in .net Pin
Delo8-Dec-05 16:04
Delo8-Dec-05 16:04 

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.