Click here to Skip to main content
15,890,995 members
Home / Discussions / C#
   

C#

 
GeneralRe: WebBrowser Control and Images Pin
#realJSOP4-Oct-08 3:13
mve#realJSOP4-Oct-08 3:13 
GeneralRe: WebBrowser Control and Images Pin
Wendelius4-Oct-08 7:14
mentorWendelius4-Oct-08 7:14 
GeneralRe: WebBrowser Control and Images Pin
#realJSOP4-Oct-08 8:42
mve#realJSOP4-Oct-08 8:42 
QuestionCannot implicitly convert type 'System.Web.UI.Control' to 'System.IO.MemoryStream' Pin
technette3-Oct-08 13:51
technette3-Oct-08 13:51 
AnswerRe: Cannot implicitly convert type 'System.Web.UI.Control' to 'System.IO.MemoryStream' Pin
Jaime Olivares3-Oct-08 19:33
Jaime Olivares3-Oct-08 19:33 
Questioncompare 2 datetime and get hours Pin
Mohammed Elkholy3-Oct-08 9:36
Mohammed Elkholy3-Oct-08 9:36 
AnswerRe: compare 2 datetime and get hours Pin
J4amieC3-Oct-08 9:56
J4amieC3-Oct-08 9:56 
AnswerRe: compare 2 datetime and get hours Pin
J$3-Oct-08 9:59
J$3-Oct-08 9:59 
You should look into the TimeSpan object.
TimeSpan timeSpan = DateTime.Now.Subtract(new DateTime(2008, 10, 3));


To get the whole number of hours, its as simple as int hours = timeSpan.Hours

If you want to get the total hours, double totalHours = timeSpan.TotalHours

If you're unclear on any of this I recommend taking a look at the documentation or doing a google search on System.TimeSpan
QuestionPut sound on own simple program Pin
MorganSim3-Oct-08 8:46
MorganSim3-Oct-08 8:46 
AnswerRe: Put sound on own simple program Pin
DaveyM693-Oct-08 9:04
professionalDaveyM693-Oct-08 9:04 
QuestionRe: Put sound on own simple program Pin
MorganSim3-Oct-08 10:22
MorganSim3-Oct-08 10:22 
AnswerRe: Put sound on own simple program Pin
Dan Neely3-Oct-08 10:32
Dan Neely3-Oct-08 10:32 
AnswerRe: Put sound on own simple program Pin
DaveyM693-Oct-08 10:58
professionalDaveyM693-Oct-08 10:58 
AnswerRe: Put sound on own simple program Pin
PIEBALDconsult3-Oct-08 9:37
mvePIEBALDconsult3-Oct-08 9:37 
QuestionRe: Put sound on own simple program Pin
MorganSim3-Oct-08 9:51
MorganSim3-Oct-08 9:51 
AnswerRe: Put sound on own simple program Pin
PIEBALDconsult3-Oct-08 10:23
mvePIEBALDconsult3-Oct-08 10:23 
QuestionPass Dataset table to a stored procedure as a parameter Pin
Litani3-Oct-08 8:46
Litani3-Oct-08 8:46 
GeneralRe: Pass Dataset table to a stored procedure as a parameter Pin
nelsonpaixao3-Oct-08 14:20
nelsonpaixao3-Oct-08 14:20 
QuestionProgammatically pressing underscore,$,% etc keys Pin
Sandeep Kalra3-Oct-08 7:43
Sandeep Kalra3-Oct-08 7:43 
AnswerRe: Progammatically pressing underscore,$,% etc keys Pin
Sandeep Kalra3-Oct-08 8:08
Sandeep Kalra3-Oct-08 8:08 
AnswerRe: Progammatically pressing underscore,$,% etc keys Pin
led mike3-Oct-08 8:49
led mike3-Oct-08 8:49 
GeneralRe: Progammatically pressing underscore,$,% etc keys Pin
Sandeep Kalra3-Oct-08 9:01
Sandeep Kalra3-Oct-08 9:01 
RantRe: Progammatically pressing underscore,$,% etc keys Pin
Jason Lepack (LeppyR64)3-Oct-08 9:02
Jason Lepack (LeppyR64)3-Oct-08 9:02 
AnswerRe: Progammatically pressing underscore,$,% etc keys Pin
PIEBALDconsult3-Oct-08 10:32
mvePIEBALDconsult3-Oct-08 10:32 
QuestionThe process cannot access the file because it is being used by another process Pin
Alan Balkany3-Oct-08 6:51
Alan Balkany3-Oct-08 6:51 

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.