Click here to Skip to main content
16,004,969 members
Home / Discussions / C#
   

C#

 
GeneralRe: But Sir Pin
sajid.salim.khan4-Jan-07 20:38
sajid.salim.khan4-Jan-07 20:38 
AnswerRe: But Sir Pin
Tyler454-Jan-07 20:58
Tyler454-Jan-07 20:58 
GeneralRe: But Sir Pin
JacquesDP4-Jan-07 20:34
JacquesDP4-Jan-07 20:34 
AnswerRe: How to Make EXE Pin
Mircea Puiu4-Jan-07 21:05
Mircea Puiu4-Jan-07 21:05 
AnswerRe: How to Make EXE Pin
Christian Graus4-Jan-07 23:58
protectorChristian Graus4-Jan-07 23:58 
AnswerRe: How to Make EXE Pin
TrooperIronMan5-Jan-07 5:34
TrooperIronMan5-Jan-07 5:34 
AnswerRe: How to Make EXE Pin
Tyler455-Jan-07 12:14
Tyler455-Jan-07 12:14 
QuestionDateTime.CompareTo() runtime miss Pin
swjam4-Jan-07 18:17
swjam4-Jan-07 18:17 
I have the following block of code

if( (nDecisionDate.CompareTo(timePickFrom.Value) >= 0) &&
(nDecisionDate.CompareTo(timePickTo.Value) <= 0)
)
{
//processing here
}

nDecisionDate is a DateTime type while timePickFrom is of type System.Windows.Forms.DateTimePicker. The code compiles and runs but it misses to go inside the block whenever nDecisionDate is equal to the beginning of the inclusive dates (i.e. the = in >=). What is the best way to compare a DateTime type to a DateTimePicker from a calendar tool?
it might be worth noting that nDecisionDate is a DateTime type that was cast from a string class which was from a sql resultset which is of type DateTime.
Thank you in advance.
AnswerRe: DateTime.CompareTo() runtime miss Pin
Christian Graus4-Jan-07 18:32
protectorChristian Graus4-Jan-07 18:32 
AnswerRe: DateTime.CompareTo() runtime miss Pin
Phillip M. Hoff4-Jan-07 18:41
Phillip M. Hoff4-Jan-07 18:41 
AnswerRe: DateTime.CompareTo() runtime miss Pin
Russell Jones4-Jan-07 21:56
Russell Jones4-Jan-07 21:56 
QuestionCPU Usage in % Pin
Praveen Raghuvanshi4-Jan-07 17:14
professionalPraveen Raghuvanshi4-Jan-07 17:14 
AnswerRe: CPU Usage in % Pin
Phillip M. Hoff4-Jan-07 18:24
Phillip M. Hoff4-Jan-07 18:24 
Questionconnect db to crystal report Pin
amilapradeep4-Jan-07 17:12
amilapradeep4-Jan-07 17:12 
AnswerRe: connect db to crystal report Pin
Tyler454-Jan-07 21:34
Tyler454-Jan-07 21:34 
GeneralRe: connect db to crystal report Pin
amilapradeep5-Jan-07 2:07
amilapradeep5-Jan-07 2:07 
AnswerRe: connect db to crystal report Pin
Tyler455-Jan-07 12:22
Tyler455-Jan-07 12:22 
GeneralRe: connect db to crystal report Pin
amilapradeep6-Jan-07 18:58
amilapradeep6-Jan-07 18:58 
QuestionDo you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 16:39
JoeRip4-Jan-07 16:39 
AnswerRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 18:15
Phillip M. Hoff4-Jan-07 18:15 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 18:34
JoeRip4-Jan-07 18:34 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 18:41
JoeRip4-Jan-07 18:41 
GeneralRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 19:08
Phillip M. Hoff4-Jan-07 19:08 
GeneralRe: Do you know of a MS COM object that raises events? Pin
Phillip M. Hoff4-Jan-07 19:50
Phillip M. Hoff4-Jan-07 19:50 
GeneralRe: Do you know of a MS COM object that raises events? Pin
JoeRip4-Jan-07 20:04
JoeRip4-Jan-07 20: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.