471,325 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Sizing controls in the MenuStrip.

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?
Jan 11 '06 #1
4 3927
Is Multiline set to true?
"Frank Rizzo" <no**@none.com> wrote in message
news:uO*************@TK2MSFTNGP09.phx.gbl...
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?

Jan 11 '06 #2
Rocky wrote:
Is Multiline set to true?
No, but how is that relevant to the height of the textbox?

"Frank Rizzo" <no**@none.com> wrote in message
news:uO*************@TK2MSFTNGP09.phx.gbl...
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?


Jan 11 '06 #3
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.

"Frank Rizzo" <no**@none.com> wrote in message
news:uf**************@TK2MSFTNGP15.phx.gbl...
Rocky wrote:
Is Multiline set to true?


No, but how is that relevant to the height of the textbox?


"Frank Rizzo" <no**@none.com> wrote in message
news:uO*************@TK2MSFTNGP09.phx.gbl...
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?



Jan 11 '06 #4
Rocky wrote:
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.

"Frank Rizzo" <no**@none.com> wrote in message
news:uf**************@TK2MSFTNGP15.phx.gbl...
Rocky wrote:
Is Multiline set to true?


No, but how is that relevant to the height of the textbox?

"Frank Rizzo" <no**@none.com> wrote in message
news:uO*************@TK2MSFTNGP09.phx.gbl...
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?

Jan 11 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Alvo von Cossel I | last post: by
4 posts views Thread by Tim Marsden | last post: by
3 posts views Thread by Brett Romero | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.