Windows Develop Bookmark and Share   
 index > Windows Forms General > MonthCalendar display problems in wide screen monitors/resolutions
 

MonthCalendar display problems in wide screen monitors/resolutions

Hi,

I'm running into a problem where my monthcalendar control displays correctly in standard (1280x1024, 1024x768,...) resolutions. Put on a computer with a widescreen monitor (1680x1050), the calendar control is wider and part of it is cut off. How can I make it display correctly and why would this be happening? I'm currently just setting the font size for the month control, the only way I know how to control the size.

Thanks,

Cate

CateL  Wednesday, April 30, 2008 1:59 PM
try to make u staff in percents of u screen, not in pixels.
like
int Hscreen = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;
int Wscreen = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
size((int)(0.131 * (float)(Wscreen)), (int)(0.055 * (float)(Hscreen)));

like that,so whatever resolution u will have it will the same picture.
Al dee  Wednesday, April 30, 2008 4:50 PM
try to make u staff in percents of u screen, not in pixels.
like
int Hscreen = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height;
int Wscreen = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width;
size((int)(0.131 * (float)(Wscreen)), (int)(0.055 * (float)(Hscreen)));

like that,so whatever resolution u will have it will the same picture.
Al dee  Wednesday, April 30, 2008 4:50 PM

You can use google to search for other answers

Custom Search

More Threads

• printing reports
• Error message ''Library not registered'' when using Masked Edit control (I m using VB2003 with Windows2003)
• changing NumberDecimalSeparator
• How to add a new line inside a textfield...
• Self-Extracting executable as a Windows Forms.
• testing modules of my application
• Sort DataGrid Text Column
• noob: Load Config.XML file
• calling windows form from a class
• checkbox buttons - how to make one appear selected/depressed/actively/