Click here to Skip to main content
15,896,040 members
Home / Discussions / C#
   

C#

 
QuestionCannot open 2 or more outlook contact detail Pin
manfree7-Apr-09 0:38
manfree7-Apr-09 0:38 
QuestionHow to Create a setup file in c#.net3.5 windows application Pin
Narendra Reddy Vajrala7-Apr-09 0:14
Narendra Reddy Vajrala7-Apr-09 0:14 
AnswerRe: How to Create a setup file in c#.net3.5 windows application Pin
stancrm7-Apr-09 0:25
stancrm7-Apr-09 0:25 
GeneralRe: How to Create a setup file in c#.net3.5 windows application Pin
Narendra Reddy Vajrala7-Apr-09 0:56
Narendra Reddy Vajrala7-Apr-09 0:56 
GeneralRe: How to Create a setup file in c#.net3.5 windows application Pin
Henry Minute7-Apr-09 2:05
Henry Minute7-Apr-09 2:05 
GeneralRe: How to Create a setup file in c#.net3.5 windows application Pin
Narendra Reddy Vajrala7-Apr-09 2:31
Narendra Reddy Vajrala7-Apr-09 2:31 
GeneralRe: How to Create a setup file in c#.net3.5 windows application Pin
Henry Minute7-Apr-09 11:40
Henry Minute7-Apr-09 11:40 
QuestionCalculate the age in years,months and days using the datetimepicker. Pin
Schdev7-Apr-09 0:10
Schdev7-Apr-09 0:10 
Hi,

Can any help me in calculating the age in years, months and days using the datetimepicker in C#? I was able to calculate the age in years using the below code:

int ageYears=Datetime.Now.Year-datetimepicker1.Value.Year;
textbox1.text=ageYears.ToString();

Similarly I want to calculate in terms of Months and Days.

Example:

CurrentDate - 07-Apr-2009
DOB - 05-Aug-2008
textbox1 - 0 Years textbox2 - 8 Months textbox3 - 2 Days

Thanks in Advance.
AnswerRe: Calculate the age in years,months and days using the datetimepicker. Pin
stancrm7-Apr-09 0:27
stancrm7-Apr-09 0:27 
AnswerRe: Calculate the age in years,months and days using the datetimepicker. Pin
DaveyM697-Apr-09 1:02
professionalDaveyM697-Apr-09 1:02 
AnswerRe: Calculate the age in years,months and days using the datetimepicker. Pin
Henry Minute7-Apr-09 1:04
Henry Minute7-Apr-09 1:04 
AnswerRe: Calculate the age in years,months and days using the datetimepicker. Pin
Luc Pattyn7-Apr-09 3:50
sitebuilderLuc Pattyn7-Apr-09 3:50 
QuestionWriting to ListBox from multiple threads Pin
Bruce Coward7-Apr-09 0:00
Bruce Coward7-Apr-09 0:00 
AnswerRe: Writing to ListBox from multiple threads Pin
Nicholas Butler7-Apr-09 0:52
sitebuilderNicholas Butler7-Apr-09 0:52 
GeneralRe: Writing to ListBox from multiple threads Pin
Bruce Coward7-Apr-09 1:04
Bruce Coward7-Apr-09 1:04 
GeneralRe: Writing to ListBox from multiple threads Pin
Nicholas Butler7-Apr-09 1:19
sitebuilderNicholas Butler7-Apr-09 1:19 
GeneralRe: Writing to ListBox from multiple threads Pin
Luc Pattyn7-Apr-09 3:53
sitebuilderLuc Pattyn7-Apr-09 3:53 
AnswerRe: Writing to ListBox from multiple threads Pin
Henry Minute7-Apr-09 1:15
Henry Minute7-Apr-09 1:15 
GeneralRe: Writing to ListBox from multiple threads Pin
Nicholas Butler7-Apr-09 1:23
sitebuilderNicholas Butler7-Apr-09 1:23 
GeneralRe: Writing to ListBox from multiple threads Pin
Henry Minute7-Apr-09 1:35
Henry Minute7-Apr-09 1:35 
GeneralRe: Writing to ListBox from multiple threads Pin
Bruce Coward7-Apr-09 1:24
Bruce Coward7-Apr-09 1:24 
GeneralRe: Writing to ListBox from multiple threads Pin
Henry Minute7-Apr-09 1:35
Henry Minute7-Apr-09 1:35 
GeneralRe: Writing to ListBox from multiple threads Pin
Bruce Coward7-Apr-09 1:40
Bruce Coward7-Apr-09 1:40 
AnswerRe: Writing to ListBox from multiple threads Pin
DaveyM697-Apr-09 2:22
professionalDaveyM697-Apr-09 2:22 
AnswerRe: Writing to ListBox from multiple threads Pin
Luc Pattyn7-Apr-09 4:05
sitebuilderLuc Pattyn7-Apr-09 4:05 

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.