You are on page 1of 16

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

CONTROLS IN VB CONTROL STRUCTURE

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

MENU MENU EDITOR MDI FORMS

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

Menus can be added to a form using the Menu Editor Selecting a menu item at design- time takes you to the code editor for the specific menu item.

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

Shortcut is CTRL + E The name is the identifier for the control. The three-letter mnemonic for a menu item is mnu All controls must be named uniquely. Menu editor do not have an default captions

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

User sees the text in ctb. Alt + P is the access key for the CTB in the Menu Editor Window

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

When a Hyphen is set as caption, a separator is inserted in bet. Items

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

It is a Control Name Names must be different, if not the case of control array This name will be the event procedure . Names must be given to all the menu item. Alt + M is the access key.

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

In case of a control array, index can be set in index button. Control Array add new instances of a control at run time. Control Array lets to enlarge or shrink the menu at run time. New item can be added in menu with load method. Items can be removed in menu with unload method.

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

10

It is used to add accelerator keys. It means, either Function Keys or CTRL Keys with key combinations. Shortcuts are present in a drop down list box with choices. [Alt + f4 is not available as shortcut key since it is for exit the program]

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

11

WINDOWLIST CHECK BOX : Used when it has MDI HELP CONTEXT ID BOX: Used when adding help system CHECKED CHECK BOX:
A check box will be displayed in the front of the item. Controls the checked property of the menu item. The default is off.

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

12

Enabled Check Box Visible Check Box Arrow Buttons Next Button Insert Button Delete Button

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

13

Multiple Document Interface One window is a MDI Container / MDI Parent All others are MDI Child

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

14

Choose new MDI from file/ project explorer Create additional normal forms. Set MDI Child property to true

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

15

At design time both child and parent forms look alike At run time all the child forms must be explicitly shown. All the child forms will be displayed within the parent form boundary.

UNIT II | MENU'S & DIALOGS | II MCA | WVP | KNITHEESHMURRUGAN

16

You might also like