Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
QuestionDifference between two date/times Pin
mjawadkhatri6-Aug-09 19:55
mjawadkhatri6-Aug-09 19:55 
AnswerRe: Difference between two date/times Pin
Vikram A Punathambekar6-Aug-09 20:15
Vikram A Punathambekar6-Aug-09 20:15 
GeneralRe: Difference between two date/times Pin
mjawadkhatri6-Aug-09 20:21
mjawadkhatri6-Aug-09 20:21 
GeneralRe: Difference between two date/times Pin
Vikram A Punathambekar6-Aug-09 20:30
Vikram A Punathambekar6-Aug-09 20:30 
GeneralRe: Difference between two date/times Pin
mjawadkhatri6-Aug-09 20:37
mjawadkhatri6-Aug-09 20:37 
AnswerRe: Difference between two date/times Pin
Luc Pattyn7-Aug-09 0:39
sitebuilderLuc Pattyn7-Aug-09 0:39 
GeneralRe: Difference between two date/times Pin
mjawadkhatri7-Aug-09 2:02
mjawadkhatri7-Aug-09 2:02 
GeneralRe: Difference between two date/times Pin
Luc Pattyn7-Aug-09 2:40
sitebuilderLuc Pattyn7-Aug-09 2:40 
Hi,

so you choose to ignore my 7 questions? and want something from me? take this:

private DateTime started;

public Form1() {
    InitializeComponent();
    started=DateTime.Now;
    timer.Tick += new EventHandler(timer1_Tick);
    timer.Interval = (1000) * (1);
    timer.Start();
}

private void timer1_Tick(object sender, EventArgs e) {
    DateTime now=DateTime.Now;
    label6.Text = "It is now "+now.ToString("HH:mm:ss");
    double seconds=now.Subtract(started).TotalSeconds;
    label7.Text = "which is "+seconds+" seconds since this form started.";
}


Hmmm | :|

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Difference between two date/times Pin
Vikram A Punathambekar7-Aug-09 6:33
Vikram A Punathambekar7-Aug-09 6:33 
GeneralRe: Difference between two date/times Pin
Luc Pattyn7-Aug-09 6:59
sitebuilderLuc Pattyn7-Aug-09 6:59 
QuestionWiewing Office Document in Web Browser Pin
egpuyos6-Aug-09 19:51
egpuyos6-Aug-09 19:51 
AnswerRe: Wiewing Office Document in Web Browser Pin
dan!sh 6-Aug-09 20:00
professional dan!sh 6-Aug-09 20:00 
GeneralRe: Wiewing Office Document in Web Browser Pin
Baeltazor7-Aug-09 0:29
Baeltazor7-Aug-09 0:29 
QuestionHow to catch the data that is given for print using c# Pin
svt gdwl6-Aug-09 19:40
svt gdwl6-Aug-09 19:40 
Questionhow to get tables of an access db into a list box using c#? Pin
fathatsme6-Aug-09 19:04
fathatsme6-Aug-09 19:04 
AnswerRe: how to get tables of an access db into a list box using c#? Pin
Cracked-Down6-Aug-09 19:24
Cracked-Down6-Aug-09 19:24 
QuestionRe: how to get tables of an access db into a list box using c#? Pin
fathatsme6-Aug-09 19:33
fathatsme6-Aug-09 19:33 
Answerhow to get fields tables of an acces db into a list box?` Pin
fathatsme6-Aug-09 20:16
fathatsme6-Aug-09 20:16 
GeneralRe: how to get fields tables of an acces db into a list box?` Pin
fathatsme6-Aug-09 23:36
fathatsme6-Aug-09 23:36 
QuestionDataGridView Pin
vhassan6-Aug-09 18:26
vhassan6-Aug-09 18:26 
AnswerRe: DataGridView Pin
Mycroft Holmes6-Aug-09 20:14
professionalMycroft Holmes6-Aug-09 20:14 
Questionon enter fire button Pin
Rajee Maharjan6-Aug-09 18:26
Rajee Maharjan6-Aug-09 18:26 
AnswerRe: on enter fire button Pin
MumbleB6-Aug-09 19:19
MumbleB6-Aug-09 19:19 
AnswerRe: on enter fire button Pin
Cracked-Down6-Aug-09 19:21
Cracked-Down6-Aug-09 19:21 
AnswerRe: on enter fire button Pin
Rajee Maharjan6-Aug-09 19:51
Rajee Maharjan6-Aug-09 19: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.