Windows Develop Bookmark and Share   
 index > Windows Forms General > Certain letters being cut off in CheckedListBox
 

Certain letters being cut off in CheckedListBox

Hello,

My CheckedListBox seems to cut off any part of a letter that hangs too low -- mostly the bottom of g's and j's. CheckedListBox doesn't appear to have a property that allows modifying line spacing or anything like that, so I'm stuck as to how to fix this.

The font I'm using is Microsoft Sans Serif, 9.75pt. Interestingly enough, if I make the font very small, the letters are no longer cut off. However, the text needs to be a readable size.

All suggestions are welcome, thanks in advance.
bmcswee  Monday, August 17, 2009 3:06 PM
I don't see a possible way this could happen. The height is calculated from Font.Height + 2 or the size of a checkbox + 2, which ever is larger. There would be something seriously wrong with the fonts on your machine when Font.Height isn't calculated correctly. At least try this on another machine so you can eliminate trouble with the machine is a possible source.
Hans Passant.
nobugz  Monday, August 17, 2009 4:45 PM
I don't see a possible way this could happen. The height is calculated from Font.Height + 2 or the size of a checkbox + 2, which ever is larger. There would be something seriously wrong with the fonts on your machine when Font.Height isn't calculated correctly. At least try this on another machine so you can eliminate trouble with the machine is a possible source.
Hans Passant.
nobugz  Monday, August 17, 2009 4:45 PM
This is most definitely happening to me as well. Any letters that drop belowthe bottom(g, j, p, y) are being cut off. Font size 9.75.
dpuza  Thursday, September 17, 2009 7:54 PM

You can use google to search for other answers

Custom Search

More Threads

• OnMouseEnter NotifyIcon
• How to make scrollbars appear in a resizable panel when the contained control is too big for it ?
• Writing to console in batch mode
• Consuming Web Service in a WinForm
• Closing form error with Invoke
• MDI Form
• Problems getting the handle to a PictureBox as a HWND
• Running a webform app from batch command line and disabling form
• Fill WebBrowser
• chat room application