i have a text box.in whic i want to entry the no of month.
after that there is two text box from date textbox and To date text box.
when i entry month in month text box from date is fixed i.e current date i want to add the no of month which entry on month text box
EX-05/06/2013 i entry on 6 on month text box then it will automatic show 05/12/2013 in to text box how i add date plz help me
int p = Convert.ToInt32(txt_warrantyeriod.Text);
txt_start.Text = DateTime.Now.ToString("dd-MMM-yyyy");
txt_end.Text = DateTime.Now.AddMonths(p).ToString("dd-MMM-yyyy");
Loading

Pankaj PandeyRank #642 · 3.7K reputationPosted Jun 5, 2013, 3:28 AM EDT
go to month textbox event and double click on textchanged even andwrite this code..
Bhabani prasad Dash168 reputationPosted Jun 5, 2013, 3:53 AM EDT
Pankaj PandeyRank #642 · 3.7K reputationPosted Jun 5, 2013, 4:00 AM EDT
Bhabani prasad Dash168 reputationPosted Jun 5, 2013, 4:01 AM EDT
Pankaj PandeyRank #642 · 3.7K reputationPosted Jun 5, 2013, 4:04 AM EDT
check it carefully again, if possible attach a screenshot when you entered the value, becoz i had tested it before posting solution, it was working.
Bhabani prasad Dash168 reputationPosted Jun 5, 2013, 4:07 AM EDT
Pankaj PandeyRank #642 · 3.7K reputationPosted Jun 5, 2013, 4:16 AM EDT
Bhabani prasad Dash168 reputationPosted Jun 5, 2013, 4:20 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts