MXL Magazine Online
HOMELATEST ISSUEARTICLESBINARY BINGEJAVA JNUKYGUI LABLINKSSHOPABOUT CONTACT  
Home > Issue 007 > Coding Showdown > Horizontal lines in file menus

Horizontal lines in file menus

Requirements: Visual Basic Studio 6.0 (will probably work in most VB studios)

Some things are really simple. But if you have never used them before you may not have a clue how to do it. I didn't. Luckily I did what I do for learning most of my code. I went through the Visual Basic Application Wizard and copied the code from there. Ok so lets go through this step by step so you know what to do:

  1. Open up an application (a blank one if you don't have one you want to work on)
  2. Click on the form and open up the menu. Then add a few random stuff like File > New, Save, Open, Exit, the usual
  3. Now insert a blank line which we will add the horizontal line into
  4. Under caption put the amazingly complex code: "-". Yeah, a dash.
  5. For name put anything such as mnu_file_bar1