Sizing controls in the MenuStrip.

  • Thread starter Thread starter Frank Rizzo
  • Start date Start date
F

Frank Rizzo

I've added a TextBox to the MenuStrip control in VS2005. The MenuStrip
control has a height of 27 pixels on my system. For whatever reason, I
can't seem to get the TextBox to be 27 pixels as well. It maxes out at
20. If I enter 27 for Size.Height, the Properties grid promptly changes
it back to 20. I've played endlessly with all various properties
(Padding, Margin, etc..) all to no avail.

Am I missing something simple?
 
Because the height of the Textbox is based on its font height. That's why
you can't make it bigger unless you set Multiline = True.
 
Rocky said:
Because the height of the Textbox is based on its font height. That's why
you can't make it bigger unless you set Multiline = True.

Ah, got it. Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top