Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
QuestionSystem.Net.Mail - SMTP Client - Authentication Pin
James M Buist6-Aug-09 21:20
James M Buist6-Aug-09 21:20 
AnswerRe: System.Net.Mail - SMTP Client - Authentication Pin
Manas Bhardwaj6-Aug-09 22:27
professionalManas Bhardwaj6-Aug-09 22:27 
QuestionHow to save the property of the user-defined column ? Pin
mctramp1686-Aug-09 20:18
mctramp1686-Aug-09 20:18 
AnswerRe: How to save the property of the user-defined column ? Pin
Cracked-Down6-Aug-09 20:28
Cracked-Down6-Aug-09 20:28 
QuestionWiewing Office Document in Web Browser Pin
egpuyos6-Aug-09 20:04
egpuyos6-Aug-09 20:04 
AnswerRe: Wiewing Office Document in Web Browser Pin
Mycroft Holmes6-Aug-09 20:10
professionalMycroft Holmes6-Aug-09 20:10 
AnswerRe: Wiewing Office Document in Web Browser Pin
Baeltazor7-Aug-09 0:43
Baeltazor7-Aug-09 0:43 
QuestionDifference between two date/times Pin
mjawadkhatri6-Aug-09 19:55
mjawadkhatri6-Aug-09 19:55 
Hi.
I need to calculate the difference between two date and time fields
I Am Try blow coding but give error
"String was not recognized as a valid DateTime"

InitializeComponent();
{
timer.Tick += new EventHandler(timer1_Tick);
timer.Interval = (1000) * (1);
timer.Enabled = true;
timer.Start();
}

private void Form1_Load(object sender, EventArgs e)
{
label7.Text = DateTime.Now.ToShortTimeString();
DateTime dt1 = DateTime.ParseExact(label6.Text, "hh:mm:ss", new DateTimeFormatInfo());
DateTime dt2 = DateTime.ParseExact(label7.Text, "hh:mm:ss", new DateTimeFormatInfo());

TimeSpan ts1 = dt1.Subtract(dt2);
textBox1.Text = ts1.ToString();

}

private void timer1_Tick(object sender, EventArgs e)
{
label6.Text = DateTime.Now.ToShortTimeString();
label6.Text = DateTime.Now.ToString("hh:mm:ss");
}
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 
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 

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.