473,734 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4146
Is Multiline set to true?
"Frank Rizzo" <no**@none.co m> wrote in message
news:uO******** *****@TK2MSFTNG P09.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.co m> wrote in message
news:uO******** *****@TK2MSFTNG P09.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.co m> wrote in message
news:uf******** ******@TK2MSFTN GP15.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.co m> wrote in message
news:uO******** *****@TK2MSFTNG P09.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.co m> wrote in message
news:uf******** ******@TK2MSFTN GP15.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.co m> wrote in message
news:uO***** ********@TK2MSF TNGP09.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5483
by: Alvo von Cossel I | last post by:
hi, i have a modern looking application without the cotrolbox-bar because i've created my own. i have a restore down button with an image that has a grey background. if the user has a different XP style then the button will look weird. how can i make the menustrip not change colour when the user of the PC changes their XP style? -- Alvo von Cossel I of Germany
4
2058
by: Tim Marsden | last post by:
Hi I would like to add controls to my page at runtime. What containers can I use to host the controls? I know I can add them to the form controls collection, but I need to have control on where they are placed. For example I would like a page header and footer, menu on the left, text on the right and an area in the middle where I can add the controls, with the area sizing dynamically. Hope you can suggest some options.
0
1849
by: rellik | last post by:
Hi All, I've run into a problem with the MenuStrip control and any help would be greatly appreciated! The problem I've got is that when use a control derived from the MenuStrip class all MDI merge functionality breaks - each MDI child window is given it's own menu rather than the mdi parent. To repeat the problem just create a very simple dummy app that has standard
0
2379
by: academic | last post by:
Using ToolStripManager.Merge(ToolStrip,ToolStrip) I've been able to merge a MenuStrip into a MenuStrip but never a ContextMenuStrip into a MenuStrip. From the docs it seems to me I should be able to.
3
12558
by: Brett Romero | last post by:
I have an MDI Parent form with a toolstrip and menustrip. The menustrip is always the top most. Both are Docked to Top. I contemplated using a toolstripcontainer but then removed it. I had to redock my toolstrip and menustrip. Now the toolstrip is always top most. I added a new MDI Parent form and can't find any differences. How do I get the menustrip to be top most? Also, is there a way to get the menu strip items (opening of a...
8
3585
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a picture box, lots of text boxes (for input).. you get the idea. All of a sudden everything on the form has disappeared, it looks like a blank, newly created form. I can still get to the properties of every item on the form using the drop-down box in...
1
2070
by: chandu | last post by:
Hello , I am developing an application which it contains one MenuStrip and ToolStrip. now i have to replace these controls with some other controls. is dotnet providing any alternate controls to this . I am dynamically adding the toolstripitems to the toolstrip,
5
10577
by: lamxing | last post by:
Hi, I've come across a strange problem with the WinForm's sizing. I've designed a WinForm and it runs fine on my computer and some other PCs. But when I was trying to run the app under some PCs with wide screen, some of my controls on the WinForm will automatic resize themselves to be bigger and thus push other controls off the screen. For a sample of this problem, please see http://usctimes.com/screen.jpg .. The screen on the left is...
7
3874
by: akshaycjoshi | last post by:
I am making one form by hand (without vs 2005). i am positioning the menustrip above the toolstrip but still bue to some reason the menu strip is below it. I inseted breakpoint and when the code goes through this the data is MainMenu.Location = {X = 0 Y = 25} OneToolStrip.Location = {X = 0 Y = 0} why is this happening ?
0
8948
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9456
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9246
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8190
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6035
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4553
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4816
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.