Windows Develop Bookmark and Share   
 index > Windows Forms Designer > MonthCalendar: HighLight Only Selected Range.
 

MonthCalendar: HighLight Only Selected Range.

Hi

I am working on MonthCalendar Control in VB.Net 2008. I haven't used MonthCalendar Control before.

I didn't find any property or method to set BackColor of Selected dates of MonthCalendar.

Another problem is, whenI select multiple dates e.g.( Jan/11 to Jan/16= 6 Days), then It shows White color on that selected area, and not displaying day numbers, just White back color.

1) How to change BackColor or Selected Dates in MonthCalendar control.

Please help me to solve this problem.

Thanks in advance.

Thank You

Best Regards

Utkarsh Gajjar.

Utkarsh  Monday, November 03, 2008 6:13 PM
Hi Utkarsh
http://msdn.microsoft.com/en-us/library/system.windows.forms.monthcalendar.datechanged.aspx
bye

Hemalshah  Tuesday, November 04, 2008 3:48 PM
Hi Utkarsh,
Please change few line of code as below

Me.MonthCalendar1.ForeColor = System.Drawing.Color.FromArgb( _
CType(192, System.Byte), CType(10, System.Byte), CType(192, System.Byte))
Me.MonthCalendar1.TitleBackColor = System.Drawing.Color.Purple
Me.MonthCalendar1.TitleForeColor = System.Drawing.Color.Red

Bye
Thanks
Hemal shah
Hemalshah  Tuesday, November 04, 2008 3:53 PM
Hi Utkarsh
http://msdn.microsoft.com/en-us/library/system.windows.forms.monthcalendar.datechanged.aspx
bye

Hemalshah  Tuesday, November 04, 2008 3:48 PM
Hi Utkarsh,
Please change few line of code as below

Me.MonthCalendar1.ForeColor = System.Drawing.Color.FromArgb( _
CType(192, System.Byte), CType(10, System.Byte), CType(192, System.Byte))
Me.MonthCalendar1.TitleBackColor = System.Drawing.Color.Purple
Me.MonthCalendar1.TitleForeColor = System.Drawing.Color.Red

Bye
Thanks
Hemal shah
Hemalshah  Tuesday, November 04, 2008 3:53 PM

Hi Hemal.

Thanks for reply.

Thank You

Best Regards

Utkarsh Gajjar.

Utkarsh  Tuesday, November 04, 2008 4:07 PM

You can use google to search for other answers

Custom Search

More Threads

• Adding images to DesignerVerbs
• Why BackgroundImageLayout::center don't act like PictureBoxSizeMode::CenterImage
• Howto include designtime help for a component
• Can't hide base class properties
• Making my own Grid - Problems
• Forms Designer & My Panel Control
• List type property, designer update problem
• References in serialized code
• Text property in Windows Forms Designer
• Code Snippet: System.Component Model Namespace