Help me :)
how to auto calculate the age, when you type in MaskedTextBox1 using Birtdate?
ranTHE
0
Newbie Poster
Recommended Answers
Jump to PostAs long as you have verified that the value entered is a valid date and is less than or equal to the current date then convert that value to a date and calculate the difference in years between that date and now. Then you have to subtract one if the …
Jump to PostYou could tie that to the Textchanged event or the validation event to have the calculation done automatically.
All 5 Replies
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
tinstaafl
1,176
Posting Maven
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
tinstaafl
1,176
Posting Maven
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.