Greetings,
i have a structure element in my code which looks like
which will be stored in a listCode:Public Structure EventItem Dim Start As Date Dim Finish As Date Dim Duration As Date Dim Subject As String Dim Tag As String Dim EventColor As Color Dim EventNo As Integer Dim TotalEventsOnDay As Integer End Structure
in runtime the structure will be filled like thisCode:Public EventList As New List(Of EventItem)
my problem now istCode:Dim ItemE As New MonthCalendar.MonthView.EventItem ItemE.Subject = "Test1" ItemE.Tag = "Test1" ItemE.Start = CDate("27.03.2007 02:15") ItemE.Finish = DateAdd(DateInterval.Hour, 1, ItemE.Start) ItemE.Duration = CDate("27.03.2007 02:15") ItemE.EventColor = Color.Red ItemE.EventNo = ?????????????? ItemE.TotalEventsOnDay = ?????????? cstMonthView.EventList.Add(ItemE)
- How do i know how many events with the same day are allready in the list




Reply With Quote