Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Not a problem that is going to affect the way my application works, but it's annoying !!!

Regardless of the size of my DateTimePicker field, the front part of the number 2 is obscured & it seems to be governed by the size of the DropDown box for the date selection (See attached picture, boxes 1 to 3). If I have the DropDown box on the Right, I lose the front part of the number 2 at the start of the field (see attached picture, box 4).

http://i62.tinypic.com/mm65qa.jpg[^]

How can I adjust this ?
Posted
Comments
CHill60 26-Jun-14 8:24am    
What platform/control is that? or which IDE? I can't reproduce the problem at the moment. Can you post the relevent code from the Form.Desigigner.vb file?
Philippe Mori 26-Jun-14 8:32am    
It might be related to the font you use to display the date... which has wide /. Probably wider than a number in that case. I would guess that the control estimate the required width from either average width or the width of a number and for that font, it give a size a bit smaller. Similar problem can sometime occurs with italic fonts.
Gary Heath 26-Jun-14 9:11am    
CHill60 - I am using Visual Studio 2010 & it's a basic Windows Form. How do I get at that code ?

Philippe Mori - I will try a different Font and see if that helps.
Gary Heath 26-Jun-14 9:18am    
Philippe Mori - Changing the font does indeed resolve the problem, thank you ... strange though when there is so much free space reserved around the button that opens the Calendar !!!

1 solution

As per the comment above, it was a Font problem, as Phillipe Mori suggested it might be ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900