label backcolor = menustrip1 backcolor
I am trying to make the backcolor of a label I have to place on my menustrip be the same color as as the menustrip
I tired:
Me.list1lbl.BackColor = Me.MenuStrip1.BackColor, but the color is still grey
Anyone have any ideas how to do this, i want to make the label blend with the strip so you just see the font
Re: label backcolor = menustrip1 backcolor
does it have to be a label?
you could just use a menuitem with no dropdownitems.
alternatively:
try this
Re: label backcolor = menustrip1 backcolor
Quote:
Originally Posted by
.paul.
does it have to be a label?
you could just use a menuitem with no dropdownitems.
alternatively:
try
this
Thought of that, but the labels need to be positioned over comboboxs, dont know how i would do that with menu strip
Re: label backcolor = menustrip1 backcolor
Why exactly would you place a Label over a ComboBox? If we know what you're actually trying to achieve then we can provide the best advice. You should always strive to provide a context for your question because we know nothing about your app going in.
Re: label backcolor = menustrip1 backcolor
Quote:
Originally Posted by
jmcilhinney
Why exactly would you place a Label over a ComboBox? If we know what you're actually trying to achieve then we can provide the best advice. You should always strive to provide a context for your question because we know nothing about your app going in.
Well its not"over" better choice of words would have been above.
the reason is i have 3 comboboxes and want to label what each one does
i.e
List1
List2
List3
I am running tight on my space on my form and trying to prevent it being so big that you have to scroll
Re: label backcolor = menustrip1 backcolor
So, you mean that you want:rather than:Is that correct?
Re: label backcolor = menustrip1 backcolor
Quote:
Originally Posted by
jmcilhinney
So, you mean that you want:
rather than:
Is that correct?
Exactly, and the label ends up on my menustrip
Re: label backcolor = menustrip1 backcolor
billboy.
Add a panel to your form, and set its Dock property to top. Then right click on the panel and select "SendToBack" this will put the panel at the top of the form, above your menustrip. Then you can add labels to this panel, and position them however you want. This will give you more freedom over the layout of things, since trying to use just a menustrip, or labels on top of it, or toolstrip, will limit your options.
Re: label backcolor = menustrip1 backcolor
Quote:
Originally Posted by
kleinma
billboy.
Add a panel to your form, and set its Dock property to top. Then right click on the panel and select "SendToBack" this will put the panel at the top of the form, above your menustrip. Then you can add labels to this panel, and position them however you want. This will give you more freedom over the layout of things, since trying to use just a menustrip, or labels on top of it, or toolstrip, will limit your options.
Thanks thats soemthing i didnt know i could do, but i dont want the labels higher then the menu strip
Re: label backcolor = menustrip1 backcolor
I thought you said you want labels above the comboboxes that are in the menustrip?
Re: label backcolor = menustrip1 backcolor
Quote:
Originally Posted by
kleinma
I thought you said you want labels above the comboboxes that are in the menustrip?
No my combobox's are on my form at very top I want the label , combo1 combo2 etc.. right above them so they have to go in menu strip
1 Attachment(s)
Re: label backcolor = menustrip1 backcolor
Re: label backcolor = menustrip1 backcolor
Quote:
Originally Posted by
kleinma
like this? or different?
thats it
Re: label backcolor = menustrip1 backcolor
That is using my suggestion above to put a panel on the form and make it dock to the top above the menustrip.
Re: label backcolor = menustrip1 backcolor
Quote:
Originally Posted by
kleinma
That is using my suggestion above to put a panel on the form and make it dock to the top above the menustrip.
Oh ok, I misunderstood you I thought the panel was going to go up higher on the part that says "Form"
I'll try that as soon as i get my picture behavior resolved :wave: