Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
AnswerRe: How To Validating Float,Date,Time in C#? Pin
Stefan Troschuetz17-Aug-06 22:18
Stefan Troschuetz17-Aug-06 22:18 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 22:37
Coding C#17-Aug-06 22:37 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Stefan Troschuetz17-Aug-06 23:23
Stefan Troschuetz17-Aug-06 23:23 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 23:56
Coding C#17-Aug-06 23:56 
AnswerRe: How To Validating Float,Date,Time in C#? Pin
Robert Rohde18-Aug-06 0:19
Robert Rohde18-Aug-06 0:19 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#18-Aug-06 0:54
Coding C#18-Aug-06 0:54 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
User 665818-Aug-06 3:56
User 665818-Aug-06 3:56 
AnswerRe: How To Validating Float,Date,Time in C#? Pin
coolestCoder17-Aug-06 22:44
coolestCoder17-Aug-06 22:44 
Hi,
Use the try catch block !

try
{
DateTime.Parse(textBox1.Text)
// code if it is date !
}
catch(Exception ex)
{
//error code
}


"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder

Anant Y. Kulkarni

GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 22:47
Coding C#17-Aug-06 22:47 
QuestionDeploying application on client machine (LAN) Pin
abhinish17-Aug-06 21:48
abhinish17-Aug-06 21:48 
AnswerRe: Deploying application on client machine (LAN) Pin
coolestCoder17-Aug-06 21:59
coolestCoder17-Aug-06 21:59 
GeneralRe: Deploying application on client machine (LAN) Pin
abhinish17-Aug-06 22:21
abhinish17-Aug-06 22:21 
GeneralRe: Deploying application on client machine (LAN) Pin
coolestCoder17-Aug-06 22:29
coolestCoder17-Aug-06 22:29 
GeneralRe: Deploying application on client machine (LAN) Pin
abhinish17-Aug-06 22:47
abhinish17-Aug-06 22:47 
GeneralRe: Deploying application on client machine (LAN) Pin
coolestCoder18-Aug-06 0:19
coolestCoder18-Aug-06 0:19 
QuestionHow to add a tooltip dynamically. Pin
cuser_id17-Aug-06 21:41
cuser_id17-Aug-06 21:41 
AnswerRe: How to add a tooltip dynamically. Pin
coolestCoder17-Aug-06 22:02
coolestCoder17-Aug-06 22:02 
QuestionError "Failed to import the ActiveX control. Please ensure it is registered properly.", when using a VB ocx in C# Pin
TinyTin17-Aug-06 21:29
TinyTin17-Aug-06 21:29 
AnswerRe: Error "Failed to import the ActiveX control. Please ensure it is registered properly.", when using a VB ocx in C# Pin
alexey N17-Aug-06 21:52
alexey N17-Aug-06 21:52 
AnswerMessage Closed Pin
17-Aug-06 22:03
cmpeng3417-Aug-06 22:03 
GeneralRe: Error "Failed to import the ActiveX control. Please ensure it is registered properly.", when using a VB ocx in C# Pin
TinyTin17-Aug-06 23:29
TinyTin17-Aug-06 23:29 
AnswerRe: Error "Failed to import the ActiveX control. Please ensure it is registered properly.", when using a VB ocx in C# Pin
TinyTin18-Aug-06 1:39
TinyTin18-Aug-06 1:39 
QuestionNeed code for adding a tooltip Pin
cuser_id17-Aug-06 20:59
cuser_id17-Aug-06 20:59 
QuestionSetting default printer Pin
Support12317-Aug-06 20:42
Support12317-Aug-06 20:42 
AnswerRe: Setting default printer [modified] Pin
ekynox17-Aug-06 21:00
ekynox17-Aug-06 21:00 

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.