Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Interface and Graphics > Putting a menu bar on a form


Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2004, 05:11 PM
cokg2 cokg2 is offline
Freshman
 
Join Date: Feb 2004
Posts: 47
Default Putting a menu bar on a form


Hi guys

How do i put a menu bar on my form. Like the top of this Internet window, like FILE EDIT VIEW FAVOURITES etc.

Ive seen it on a form in an example book, but cant work it out

Thanks

Kieran
Reply With Quote
  #2  
Old 02-22-2004, 05:14 PM
zanth_quareni's Avatar
zanth_quareni zanth_quareni is offline
Senior Contributor
 
Join Date: Aug 2003
Location: Tomarria
Posts: 905
Default

While looking at your form hit ctrl+e to bring up the menu editor. Play around with it, it is pretty easy to figure out.
The [->] and [<-] buttons are used to show menu heirarchy.

File
...New
...Open
...Other
......Save
......Save As
...-
...Exit

shows you have a menu named "File" whose children are new, open, other (whose children are save and save as), a separator bar, and exit.

You do code the same way as other objects, click on them during design time and it will make the sub for you.
__________________
...leben ohne sinn...
Reply With Quote
  #3  
Old 02-22-2004, 05:17 PM
HunterVF01's Avatar
HunterVF01 HunterVF01 is offline
Contributor
 
Join Date: Apr 2003
Location: Home Planet... Earth
Posts: 441
Smile

You can use the menu editor.. it's under Tools (or Ctrl-E as zanth_quareni said).

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
disable print preview from xlDialogPrint w_seyller Excel 9 12-11-2003 11:20 AM
VB5 Listbox & Popup Menu alehawk General 3 07-08-2003 02:19 PM
Hiding OLE Container's Object menu that shows up on form NateBrei Word, PowerPoint, Outlook, and Other Office Products 0 07-26-2002 12:27 PM
Few Questions dealing with pictures crazycheetah General 21 06-17-2002 11:08 PM
VB Menus John General 8 02-05-2002 09:31 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->