Datepicker in listview
-
Friday, February 10, 2012 12:00 PM
What is the code when you would like to show the date(datepicker) in listview?
Please answer me !!!!
thanks...
This is my code the "bold" text is wrong. It is said "invalid property value"
strsql = "select * from tblinfo"
db.Open (strcon)
Set rs = db.Execute(strsql)
If rs.EOF = False And rs.BOF = False Then
Me.ListView1.ListItems.Clear
While Not rs.EOF
With Me.ListView1.ListItems.Add
.Text = rs(0)
.SubItems(1) = rs(1)
.SubItems(2) = rs(2)
.SubItems(3) = rs(3)
.SubItems(4) = rs(4)
.SubItems(5) = rs(5)
.SubItems(6) = rs(6)
.SubItems(7) = rs(7)
.SubItems(8) = rs(8)
.SubItems(9) = rs(9)
.SubItems(10) = rs(10)
.SubItems(11) = rs(11)
.SubItems(12) = rs(12)
.SubItems(13) = rs(13)
.SubItems(14) = rs(14)
.SubItems(15) = rs(15)
End With
rs.MoveNext
Wend
End If
- Edited by Kim Alcairo Friday, February 10, 2012 12:02 PM
- Edited by Mike Walsh FIN Friday, February 10, 2012 12:14 PM As soon as possible... removed from text. These are forums so show some sense and post and WAIT (and don't demand special treatment).
All Replies
-
Wednesday, February 15, 2012 10:43 AMModerator
Hi Kim,
What did you mean "show the date(datepicker) in listview" ? Is this related to VB.NET like these posts ?
http://www.daniweb.com/software-development/vbnet/threads/362543
http://stackoverflow.com/questions/5868354/datetimepicker-displays-date-in-wrong-format
If yes, I would suggest you post the question in Visual Basic Forum,
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/threads
Thanks
Daniel Yang
TechNet Community Support
- Marked As Answer by Wayne Fan Monday, February 20, 2012 10:51 AM

