| | |
Filling list box with available date formats
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Apr 2008
Posts: 54
Reputation:
Solved Threads: 5
Hi all
Im loading list box with availabel datetime formats . but it is loading all the date time formats twice...
here is my code:
Dim dateTime As DateTime = New _
DateTime(Now.Year, Now.Month, Now.Day, Now.Hour, _
Now.Minute, Now.Second)
Dim d() As String = Nothing
d = dateTime.GetDateTimeFormats()
lstdateandtime.Items.AddRange(d)
how to sort out this issue?
Im loading list box with availabel datetime formats . but it is loading all the date time formats twice...
here is my code:
Dim dateTime As DateTime = New _
DateTime(Now.Year, Now.Month, Now.Day, Now.Hour, _
Now.Minute, Now.Second)
Dim d() As String = Nothing
d = dateTime.GetDateTimeFormats()
lstdateandtime.Items.AddRange(d)
how to sort out this issue?
i think its not twice but all formats of date-time. short or long formats, country formats..
why don't use datetime picker?
why don't use datetime picker?
VB.NET Syntax (Toggle Plain Text)
ListBox1.Items.Add(DateTimePicker1.Value.Now)
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Apr 2008
Posts: 54
Reputation:
Solved Threads: 5
Thanks for ur reply Jx_man. if i use date time picker it loads only one format of date.
and i want to load the listbox with all available datetime formats..
My code is loading all datetime formats but values are repeating i dont know why
is there any way to sort them?
thanks.
and i want to load the listbox with all available datetime formats..
My code is loading all datetime formats but values are repeating i dont know why
is there any way to sort them?
thanks.
Last edited by Pgmer; Jun 4th, 2008 at 5:23 am.
•
•
Join Date: Apr 2008
Posts: 54
Reputation:
Solved Threads: 5
•
•
•
•
Thanks for ur reply Jx_man. if i use date time picker it loads only one format of date.
and i want to load the listbox with all available datetime formats..
My code is loading all datetime formats but values are repeating i dont know why
is there any way to sort them?
thanks.
lstdateandtime.Sorted = True
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP)
Other Threads in the VB.NET Forum
- Previous Thread: Simple Inventory System
- Next Thread: Comparison of text in textbox
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 2005 2008 access account application arithmetic array arrays basic bing button buttons c# center check checkbox code combobox component convert crystalreport data database datagrid datagridview date dissertation dissertations dropdownlist excel fade file-dialog ftp generatetags google gridview hardcopy images inline input insert intel internet listview mobile monitor ms net networking objects output passingparameters peertopeervideostreaming picturebox picturebox1 port print printing problem problemwithinstallation project remove save searchbox searchvb.net select serial server shutdown soap sorting survey table tcp temperature text textbox timer toolbox trim update updown user validation vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf






