I'm surprised. I have lots of textboxes with this font size that have
a height of 20. Is your font Microsoft Sans Serif, Regular? Can you
just change the size properties to a height of 20? If you are
looking for code it is:
mytb.Size = New System.Drawing.Size(100, 20)
HTH,
Randy
John - 29 Jun 2007 07:51 GMT
Hi
Setting the font to Microsoft Sans Serif, Regular does change the height to
20 but I am using Tahoma 8 which becomes Tohama 8.25 when saved and keeps
the text box height at 21. I have manually tried to change the height of
control to 20 it goes back to 21.
Thanks
Regards
> I'm surprised. I have lots of textboxes with this font size that have
> a height of 20. Is your font Microsoft Sans Serif, Regular? Can you
[quoted text clipped - 5 lines]
> HTH,
> Randy
Remove the borders from the text box.

Signature
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
> Hi
>
[quoted text clipped - 6 lines]
>
> Regards