944,147 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 3770
  • VB.NET RSS
Mar 23rd, 2007
0

datetimepicker

Expand Post »
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

VB.NET Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
lukis is offline Offline
14 posts
since Oct 2006
Mar 23rd, 2007
0

Re: datetimepicker

VB.NET Syntax (Toggle Plain Text)
  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
Reputation Points: 10
Solved Threads: 1
Newbie Poster
molze is offline Offline
5 posts
since Mar 2007
Mar 25th, 2007
0

Re: datetimepicker

hi thanks for you help. it worked out fine for me

thanks
Luke
Reputation Points: 10
Solved Threads: 0
Newbie Poster
lukis is offline Offline
14 posts
since Oct 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Move actual file DOMDocument()
Next Thread in VB.NET Forum Timeline: moving labels on a form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC