Removing image space from menubar in C#?

Associate
Joined
30 Dec 2003
Posts
2,254
Hi,

Can anybody give me the details on how I'd go about removing the space for an image in a menubar in C#? I'm referring to the space to the left of where the menubar text is. I've spent ages trying to remove it, but it seems adament on staying! Cannot find any solutions to this on Google... Please help!

I've tried

Thanks.

EDIT: All references of "menubar" in this thread relate to "menustrip"... Sorry!
 
Last edited:
Thanks for the reply.

I have no code that is relevent to the menubar... I simply dragged the component onto a form in the GUI builder of C#. The code that I have done is by no means written to any standard and any coder would find many mistakes/poor use but I've never used C# before and I'm just knocking up a little app for work.

When I refer to the "image space" I'm referring to this, as an example:

img1jjm.jpg


This is a section of the menubar from Firefox. Notice how the text is not alligned perfectly at the left hand side. This space is for images and checkbox.

Example of both below:

img3tvo.jpg


img2fxw.jpg


In my app I only have a "File" button on the menubar and with only three entries within that, therefore the spaces seem to account for a vast proportion (The app form is very small, again) and hence looks a little silly.

Any idea how to remove it? (Code or some option in the GUI builder).

Thanks.
 
Not on the top of my head no, but if only one menu item then why not just create your own menu from textboxes / listboxes / buttons / labels etc. ?
 
Thanks for the suggestion. I'll give that some thought but other than the "wasted" space I quite like the menubar... If it comes to it I can make one (I've already got some combobox's doing similar stuff) but I want to solve this problem rather than just ditch it if possible.

Another idea is if I can get some relevant some icons from somewhere to fill the space... Anybody know any sites with menubar icons that are available for free use?

Thanks.

EDIT: All references of "menubar" in this thread relate to "menustrip"... Sorry!
 
Last edited:
Back
Top Bottom