Click here to Skip to main content
15,908,264 members
Home / Discussions / C#
   

C#

 
AnswerRe: SplitContainer Pin
salysle20-Oct-06 17:07
salysle20-Oct-06 17:07 
QuestionRe: SplitContainer [modified] Pin
alpha_1022-Oct-06 21:24
alpha_1022-Oct-06 21:24 
AnswerRe: SplitContainer Pin
salysle23-Oct-06 15:50
salysle23-Oct-06 15:50 
QuestionFormat a long value to a date time value Pin
jluis_hdezg20-Oct-06 5:42
jluis_hdezg20-Oct-06 5:42 
AnswerRe: Format a long value to a date time value Pin
Dustin Metzgar20-Oct-06 6:41
Dustin Metzgar20-Oct-06 6:41 
AnswerRe: Format a long value to a date time value Pin
Larantz20-Oct-06 13:42
Larantz20-Oct-06 13:42 
QuestionDifference between two time span in C# Pin
onlybabla20-Oct-06 5:13
onlybabla20-Oct-06 5:13 
AnswerRe: Difference between two time span in C# Pin
Dustin Metzgar20-Oct-06 6:49
Dustin Metzgar20-Oct-06 6:49 
Well, here's an example of what you could do. I guess if you get a negative number, you could always add 24 to it. Or you could use AddDays to change the day used by DateTime. By default, it will use the current date.
string strStart = "0600";
string strEnd = "2100";
DateTime dtStart = DateTime.ParseExact(strStart, "HHmm", null);
DateTime dtEnd = DateTime.ParseExact(strEnd, "HHmm", null);
Console.WriteLine(dtStart);
Console.WriteLine(dtEnd);
TimeSpan ts = dtEnd - dtStart;
Console.WriteLine(ts.Hours);



Questionpassing XML from embedded webbrowser to C# Pin
jarlath20-Oct-06 5:02
jarlath20-Oct-06 5:02 
Questionhow to develop web based vs desktop application Pin
yasminnnnn20-Oct-06 4:44
yasminnnnn20-Oct-06 4:44 
AnswerRe: how to develop web based vs desktop application Pin
Judah Gabriel Himango20-Oct-06 4:56
sponsorJudah Gabriel Himango20-Oct-06 4:56 
GeneralRe: how to develop web based vs desktop application Pin
yasminnnnn20-Oct-06 10:51
yasminnnnn20-Oct-06 10:51 
GeneralRe: how to develop web based vs desktop application Pin
Judah Gabriel Himango22-Oct-06 9:10
sponsorJudah Gabriel Himango22-Oct-06 9:10 
QuestionWEB CONFIG Question - Please Help Pin
iamnew2C#20-Oct-06 4:32
iamnew2C#20-Oct-06 4:32 
AnswerRe: WEB CONFIG Question - Please Help Pin
Elina Blank20-Oct-06 9:07
sitebuilderElina Blank20-Oct-06 9:07 
QuestionCreating Toolbars in C# Pin
clife53720-Oct-06 4:08
clife53720-Oct-06 4:08 
AnswerRe: Creating Toolbars in C# Pin
Christian Graus20-Oct-06 4:20
protectorChristian Graus20-Oct-06 4:20 
QuestionBooks on Dot Net Pin
clife53720-Oct-06 4:01
clife53720-Oct-06 4:01 
AnswerRe: Books on Dot Net Pin
Christian Graus20-Oct-06 4:03
protectorChristian Graus20-Oct-06 4:03 
GeneralRe: Books on Dot Net Pin
clife53720-Oct-06 23:43
clife53720-Oct-06 23:43 
AnswerRe: Books on Dot Net Pin
Michael P Butler20-Oct-06 4:43
Michael P Butler20-Oct-06 4:43 
QuestionGeneric webservice proxy Pin
WillemM20-Oct-06 3:31
WillemM20-Oct-06 3:31 
AnswerRe: Generic webservice proxy Pin
LongRange.Shooter23-Oct-06 4:43
LongRange.Shooter23-Oct-06 4:43 
GeneralRe: Generic webservice proxy Pin
WillemM23-Oct-06 7:35
WillemM23-Oct-06 7:35 
QuestionWindows Service Pin
subrata.jana20-Oct-06 3:21
subrata.jana20-Oct-06 3:21 

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.