Windows Develop Bookmark and Share   
 index > Windows Forms General > Set SingleMonthSize
 

Set SingleMonthSize

Is there any way to set the SingleMonthSize of the calendar control in C#? I wish I can increase the size of the calendar but apparently I were not allowed to do that.

tdcntt  Friday, February 23, 2007 10:49 PM

You can not directly adjust the size of the monthCalendar, set the Font size of the calendar instead, it would auto-size the monthCalendar to fit the font size, by default the font size of monthCalendar is 8.25, set it to whatever you want. for example:

f = new Font(this.monthCalendar1.Font.FontFamily, (float)10.2);

this.monthCalendar1.Font = f;

Zhi-Xin Ye  Monday, February 26, 2007 6:20 AM

You can not directly adjust the size of the monthCalendar, set the Font size of the calendar instead, it would auto-size the monthCalendar to fit the font size, by default the font size of monthCalendar is 8.25, set it to whatever you want. for example:

f = new Font(this.monthCalendar1.Font.FontFamily, (float)10.2);

this.monthCalendar1.Font = f;

Zhi-Xin Ye  Monday, February 26, 2007 6:20 AM
Thanks Zhi-Xin Ye.
tdcntt  Tuesday, February 27, 2007 10:14 PM

You can use google to search for other answers

Custom Search

More Threads

• Easier way to do if( XXXXX = X || XXXX = Y)?
• Please help on how to select multiple checkboxes in C#
• Readystate ???
• Recursive file Search
• Pocket PC Emulator and connections to webservices...
• ogl and mdi window problem
• Bind Images to Picture box from c folder
• data organization question
• Force user to select from a popup form first
• Copying contents of DataSet to another...