Click here to Skip to main content
15,893,266 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: CheckedListBox with multi dimensional arrays Pin
Christian Graus17-Dec-08 17:03
protectorChristian Graus17-Dec-08 17:03 
GeneralRe: CheckedListBox with multi dimensional arrays Pin
Fahim A18-Dec-08 11:59
Fahim A18-Dec-08 11:59 
QuestionRemotely Accessing Serial Port on LAN/Ethernet Pin
fahadi8617-Dec-08 12:54
fahadi8617-Dec-08 12:54 
AnswerRe: Remotely Accessing Serial Port on LAN/Ethernet Pin
Expert Coming17-Dec-08 12:57
Expert Coming17-Dec-08 12:57 
QuestionExtending MonthCalendar Control Pin
Member 271340117-Dec-08 10:07
Member 271340117-Dec-08 10:07 
AnswerRe: Extending MonthCalendar Control Pin
Dave Kreskowiak18-Dec-08 4:03
mveDave Kreskowiak18-Dec-08 4:03 
GeneralRe: Extending MonthCalendar Control Pin
smurfman8718-Dec-08 10:45
smurfman8718-Dec-08 10:45 
GeneralRe: Extending MonthCalendar Control Pin
Dave Kreskowiak18-Dec-08 10:53
mveDave Kreskowiak18-Dec-08 10:53 
Private MyDates As List(Of HighlightedDates)

Public Sub New()
    InitializeComponent()
    ' Dates would normally be passed in, in a List. For testing purposes I added the next declaration
    MyDates.Add(New HighlightedDates(Convert.ToDateTime("9/1/2008"), Color.Red, Color.Blue, Color.Pink, True))
    Dim mCal As New MonCal(MyDates)
    Me.Controls.Add(mCal)
End Sub

You didn't instantiate an instance of the List at the top of the New code. This is where you're problem lies. Your code should be:
Private MyDates As New List(Of HighlightedDates)



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Extending MonthCalendar Control Pin
smurfman8718-Dec-08 11:04
smurfman8718-Dec-08 11:04 
GeneralRe: Extending MonthCalendar Control Pin
Dave Kreskowiak18-Dec-08 16:44
mveDave Kreskowiak18-Dec-08 16:44 
GeneralRe: Extending MonthCalendar Control Pin
smurfman8719-Dec-08 3:30
smurfman8719-Dec-08 3:30 
GeneralRe: Extending MonthCalendar Control Pin
smurfman8719-Dec-08 6:09
smurfman8719-Dec-08 6:09 
QuestionHelp: ASP.NET Ajax client-side framework failed to load. [modified] Pin
Kip Smith17-Dec-08 10:00
Kip Smith17-Dec-08 10:00 
AnswerRe: Help: ASP.NET Ajax client-side framework failed to load. Pin
Christian Graus17-Dec-08 17:04
protectorChristian Graus17-Dec-08 17:04 
AnswerRe: Help: ASP.NET Ajax client-side framework failed to load. Pin
Kip Smith18-Dec-08 4:11
Kip Smith18-Dec-08 4:11 
Questionhow to send and read data through serial port using visual studio 2005? Pin
vivekmenon170617-Dec-08 8:03
vivekmenon170617-Dec-08 8:03 
AnswerRe: how to send and read data through serial port using visual studio 2005? Pin
Ben Fair17-Dec-08 8:51
Ben Fair17-Dec-08 8:51 
GeneralRe: how to send and read data through serial port using visual studio 2005? Pin
Luc Pattyn17-Dec-08 8:57
sitebuilderLuc Pattyn17-Dec-08 8:57 
QuestionOOOOOOOPS!!!!! Pin
kshincsk17-Dec-08 7:58
kshincsk17-Dec-08 7:58 
GeneralRe: OOOOOOOPS!!!!! Pin
Luc Pattyn17-Dec-08 9:00
sitebuilderLuc Pattyn17-Dec-08 9:00 
QuestionMulti User Application with Access database Pin
kshincsk17-Dec-08 7:56
kshincsk17-Dec-08 7:56 
AnswerRe: Multi User Application with Access database Pin
Dave Kreskowiak18-Dec-08 2:10
mveDave Kreskowiak18-Dec-08 2:10 
GeneralRe: Multi User Application with Access database Pin
kshincsk19-Dec-08 4:10
kshincsk19-Dec-08 4:10 
GeneralRe: Multi User Application with Access database Pin
Dave Kreskowiak19-Dec-08 12:08
mveDave Kreskowiak19-Dec-08 12:08 
GeneralRe: Multi User Application with Access database Pin
kshincsk22-Dec-08 1:05
kshincsk22-Dec-08 1:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.