Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi i want to change the intend between the items in Contextmenu strip or Menustrip.

 

I am migrating an app from VB to .NET.The gap between one menu item to another menu item in VB is less compared to .NET intend.How to decrease this intend in .NET

  • Leaders
Posted

I don't know if there is a simple way to do this. I suppose a MenuStrip is rendered with a ToolStripRenderer. You could write your own renderer. You might even be able to inherit the standard renderer and override one or two methods to make it happen.

 

If you really want your .NET menu look the same as a VB6 menu, the best thing to do would be to skip the MenuStrip and go with a standard MainMenu control. This isn't shown in the toolbox by default, but it can be added easily (right-click the toolbox and select "Choose Items..."). This will give you a standard windows menu.

[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...