about-knowledge.com

rss

Menu Programming and Multiple Form Programming Using VB 6.0

without comments

Menu Programming Using VB 6.0

A menu is a collection of commands under a single term, such as File and Edit menus. VB 6.0 allows programmer to develop menus according to the requirements of applications.

These are the steps to develop menus:

  • Click on the form window after opening a standard executable project.

  • Click on the tool menu from the menu bar.

  • Click on editor sub menu.

  • Write the caption of the menu in the text box whose label is ‘Caption’, such as file.

  • Write the name of the menu in the text box whose label is ‘Name’, such as mnufile.

  • Click on the next button to develop another menu or sub menu.

  • Click on the second button from left whose caption is ‘arrow’ directing to right in order to develop a sub menu.

  • Write the caption of the sub menu in the text box whose label is ‘Caption’, such as exit.

  • Write the name of the sub menu in the text box whose label is ‘Name’, such as mnufileexit.

  • Press button whose caption is ‘OK’ to complete the menu development procedure if no more menu or sub menu is to develop.

  • To develop another main menu after developing sub menu, click on the first button from left whose caption is ‘arrow’ directing to left.

Multiple Form Programming Using VB 6.0

VB 6.0 allows a programmer to add more than one form. There are various predefined forms that are shipped with VB 6.0 by the Microsoft Corporation:

  • Splash.
  • Log in.

Code is shown below that is used to link one form with another.

        Form_Name.show

Function ’show’ is used to call one form from another form, such as call the Form2 from Form1. Select the ‘Project’ window and right click on the mouse to view the pop up menu. Select the ‘Add’ menu and dick on the ‘Form’ icon to add the built in forms.

Splash Screen is used us a title form to develop applications using VB 6.0. It is used to put the name, logos and slogans of companies.

The developer can change its format and designing according to the requirements of user or application. Set the sequence of displaying forms from the properties of Project. Click on the menu ‘Project’ and then click on sub menu ‘Project1 Properties’.

Log in dialog is also a predefined form. It is used to set the username and passwords for the users of applications in order to provide security.

Bookmark and Share

Related posts:

  1. Fundamentals of VB 6.0 Programming and Programming to Display a String Fundamentals of VB 6.0 Programming VB 6.0 helps a programmer...
  2. Database Programming Using VB 6.0 (Part Three) Data Environment Designer These are the steps to connect VB...
  3. Database Programming Using VB 6.0 (Part Two) ActiveX Data Object (ADO) Control Method These are the steps...
  4. Sequence Programming Using VB 6.0 Sequence is a method of writing programs in a particular...
  5. VB 6.0 Programming and Integrated Development Environment of VB 6.0 VB 6.0 Programming Visual Basic (VB) was evolved from the...

Written on

May 10th, 2009 at 4:48 pm