Click here to Skip to main content
15,921,169 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Did The VB6 Die Pin
Steve Pullan19-Dec-05 17:55
Steve Pullan19-Dec-05 17:55 
AnswerRe: Did The VB6 Die Pin
Dave Kreskowiak20-Dec-05 2:47
mveDave Kreskowiak20-Dec-05 2:47 
QuestionCombobox Selected Index Changes Pin
eatwork19-Dec-05 12:44
eatwork19-Dec-05 12:44 
QuestionEvent is alive or not Pin
Mozammal19-Dec-05 5:53
Mozammal19-Dec-05 5:53 
AnswerRe: Event is alive or not Pin
Dave Kreskowiak19-Dec-05 7:30
mveDave Kreskowiak19-Dec-05 7:30 
AnswerRe: Event is alive or not Pin
Dave Doknjas19-Dec-05 13:44
Dave Doknjas19-Dec-05 13:44 
GeneralRe: Event is alive or not Pin
Dave Kreskowiak19-Dec-05 14:27
mveDave Kreskowiak19-Dec-05 14:27 
QuestionDate in text box stored in SQL Pin
KreativeKai19-Dec-05 4:07
professionalKreativeKai19-Dec-05 4:07 
This is probably a simple question, but for some reason (maybe Monday morning fog, or too many Christmas goodies in the conference room to distract me from thinking) but I can't seem to figure out what I'm doing wrong.

I have a textbox on a Windows form, and the client is supposed to enter a date in this textbox. The information is then posted via a stored procedure into a SQL table in a column that is formatted datetime.

You would think this is simple, but even when I put a valid date like 11/11/99 in the text box, when it executes the following code I get the message 'Cast from string "System.Windows.Forms.TextBox, Te" to type 'Date' is not valid.'.

cmdPost.Parameters("@BirthDate").Value = frmEx.tbxDOB.ToString

Even if I change the code to the example below, I get the same error.

cmdPost.Parameters("@BirthDate").Value = CDate(frmEx.tbxDOB.ToString).ToShortDateString

I know the answer is something simple, and after a few more glasses of egg nog, maybe I'll figure it out, but if anyone has any suggestions, I'd appreciate your input.

Thanks Roll eyes | :rolleyes:

Lost in the vast sea of .NET

<a href="http://www.komputing.com/Pricelist.html">Visit my website at www.komputing.com</a>

AnswerRe: Date in text box stored in SQL Pin
albCode19-Dec-05 4:32
albCode19-Dec-05 4:32 
GeneralRe: Date in text box stored in SQL Pin
KreativeKai19-Dec-05 4:45
professionalKreativeKai19-Dec-05 4:45 
GeneralRe: Date in text box stored in SQL Pin
albCode19-Dec-05 4:51
albCode19-Dec-05 4:51 
GeneralRe: Date in text box stored in SQL Pin
KreativeKai19-Dec-05 5:30
professionalKreativeKai19-Dec-05 5:30 
QuestionRe: Date in text box stored in SQL Pin
dptalt21-Dec-05 2:59
dptalt21-Dec-05 2:59 
AnswerRe: Date in text box stored in SQL Pin
KreativeKai21-Dec-05 3:31
professionalKreativeKai21-Dec-05 3:31 
Questiondatagrid validation Pin
usernamess19-Dec-05 3:49
usernamess19-Dec-05 3:49 
Questionregarding excel sheet generation in vb.net Pin
nagalakshmibasireddy19-Dec-05 2:37
nagalakshmibasireddy19-Dec-05 2:37 
AnswerRe: regarding excel sheet generation in vb.net Pin
usernamess19-Dec-05 3:46
usernamess19-Dec-05 3:46 
QuestionPrinting problem in VB.net Pin
HemaRawat19-Dec-05 0:17
HemaRawat19-Dec-05 0:17 
AnswerRe: Printing problem in VB.net Pin
Duncan Edwards Jones19-Dec-05 0:25
professionalDuncan Edwards Jones19-Dec-05 0:25 
GeneralRe: Printing problem in VB.net (Urgent) Pin
HemaRawat19-Dec-05 0:31
HemaRawat19-Dec-05 0:31 
GeneralRe: Printing problem in VB.net (Urgent) Pin
Dave Kreskowiak19-Dec-05 7:27
mveDave Kreskowiak19-Dec-05 7:27 
GeneralRe: Printing problem in VB.net (Urgent) Pin
HemaRawat19-Dec-05 17:26
HemaRawat19-Dec-05 17:26 
GeneralRe: Printing problem in VB.net (Urgent) Pin
Dave Kreskowiak20-Dec-05 2:42
mveDave Kreskowiak20-Dec-05 2:42 
QuestionMAPI Message problem Pin
Anant_Radadia18-Dec-05 23:38
Anant_Radadia18-Dec-05 23:38 
QuestionHow to create shortcut key in vb.net toolbar Pin
chewmp18-Dec-05 23:07
chewmp18-Dec-05 23:07 

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.