datetimepicker

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Oct 2006
Posts: 14
Reputation: lukis is an unknown quantity at this point 
Solved Threads: 0
lukis lukis is offline Offline
Newbie Poster

datetimepicker

 
0
  #1
Mar 23rd, 2007
Hi,

I'm using a datetimepicker in a form and i have a textbox also. I need to list the days clicked separated by a "," in the textbox, however i have no idea how to code it.

ex. i used

  1. dates_chosen.text = datetimepicker1.value.dayofweek.toString

but if i click on another date, then the date is changed in the textbox. I want to keep the date, use a comma (& ",") and paste the next date to click after the comma.

any help very much appreciated

Thank you
Luke
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 5
Reputation: molze is an unknown quantity at this point 
Solved Threads: 1
molze molze is offline Offline
Newbie Poster

Re: datetimepicker

 
0
  #2
Mar 23rd, 2007
  1. IF LEN(Datetimepicker1.value.dayofweek.toString)=0 THEN
  2. dates_chosen.text = datetimepicker1.value.dayofweek.toString
  3. ELSE
  4. dates_chosen.text = DATES_CHOSEN.TEXT +", " + datetimepicker1.value.dayofweek.toString
  5. END IF
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 14
Reputation: lukis is an unknown quantity at this point 
Solved Threads: 0
lukis lukis is offline Offline
Newbie Poster

Re: datetimepicker

 
0
  #3
Mar 25th, 2007
hi thanks for you help. it worked out fine for me

thanks
Luke
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 2716 | Replies: 2
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC