borderAndreaVB free resources for Visual Basic developersborder

ASP.NET 3.5 Hosting - DiscountASP.NET

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (numbers in triangular form) New Topic New Poll Post Reply
AndreaVB Forum : VB General : How to create a common menu for whole proj? #1
Poster Message
kartik07
Level: Big Cheese

Registered: 01-01-2008
Posts: 20

icon How to create a common menu for whole proj? #1

Hi,I am new to VB6.I need to create a similar menu for many forms.My proj has around 8 forms.lets say I need file and edit menus,also have submenus.

Do I need to repeat the code for the menu in al the forms or can I declare some coding in a module or something like tat

15-01-2008 at 12:51 PM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 1009
icon Re: How to create a common menu for whole proj? #1

Hi
The topic you need to start with is MDI applications.


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

15-01-2008 at 02:15 PM
View Profile Send Email to User Show All Posts | Quote Reply
kartik07
Level: Big Cheese

Registered: 01-01-2008
Posts: 20
icon How to create a common menu for whole proj?



Hi,I am new to VB6.I need to create a similar menu for many forms.My proj has around 8 forms.lets say I need file and edit menus,also have submenus.

Do I need to repeat the code for the menu in al the forms or can I declare some coding in a module or something like tat

15-01-2008 at 06:04 PM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 1009
icon Re: How to create a common menu for whole proj? #1

I've merged this topic from API, as it wasn't an API section.

Kartik.
Look online for help with Creating MDI Applications in VB, as this is the shared-menu concept that you are asking about.

Hope this helps,
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

15-01-2008 at 06:36 PM
View Profile Send Email to User Show All Posts | Quote Reply
kartik07
Level: Big Cheese

Registered: 01-01-2008
Posts: 20
icon Re: How to create a common menu for whole proj? #1

k thanx a lot....ill try tat....

18-01-2008 at 09:41 AM
View Profile Send Email to User Show All Posts | Quote Reply
Bharathi
Level: Scholar

Registered: 11-04-2005
Posts: 32
icon Re: How to create a common menu for whole proj? #1

Hi,

Creating a menu in Visual Basic

Open Visual Basic. A dailog screen prompts us to choose the type of application. Choose  the standard EXE icon from the dialog screen.  A form is displayed with a name Form1 for the Project1. Choose Project1 properties from the Project menu option and change the project name to iLiven and click on Ok button. Save the form as Menuform.frm using the Save Form As option in the file menu. Save the project as iLiven.vbp using the Save Project As option in the file menu.  
To change the caption of the form to iLiven, press F4 to get the properties window and type iLiven in the caption property and name of the form to MenuForm. This form is named as MenuForm because it will hold the menu for the application we are going to develop. To add the menu options to the application we use the menu editor. Choose the menu editor from tools option. Following are the steps to create the menu.

Type text in the Caption text box and same text in the Name text box. Caption appears in the menu bar while the name is referred to in programming. Press Next button to add another menu option. While the control is on one option, press right arrow or left arrow to determine the level. Down arrow or up arrow moves the entry.

The menu options are connected to their respective forms. The form is connected to a menu option is as shown below. The code for the menu items is written in the MenuForm. The code for Accounts menu item is given below:

Private Sub AccAdd_Click()
‘Procedure  for Activating Accounts Creation Form
    Load AccDialog
    AccDialog.Show
End Sub

Creating a menu in Visual Basic

28-02-2008 at 08:28 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 1009
icon Re: How to create a common menu for whole proj? #1

Hi Bharathi
Can you clarify for Kartik how your method allows them to share the menu for many forms?
Thanks


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

28-02-2008 at 06:24 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : How to create a common menu for whole proj? #1
Next Topic (numbers in triangular form) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Lei e Lui - il portale | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder