 |
|
 |
|
Senior Member
Join Date: Jan 2009
Posts: 145
Rep Power: 2 
|
|
 |
|
 |
|
 |
|
 |
|
Form Design
 |
|
 |
|
The program is a single¬form-based VB application, designed and tested under Microsoft Visual Basic 6 and Windows XP plat¬form using Microsaft;..0ffice Word 2003.
Launch Visual Basic from 'start' menu on the desktop and select 'standard EXE' from 'new project' option to open a new Visual Basic form. Resize the fornl as shown in Screenshot 1 and keep its caption prop¬erty blank. Place OLE on the form, select the Word document and click 'ok' button. Place a label in rectangular shape on the form in the centre position, resize and change the border colour to blue. Place another rectangular shape on the form, position and resize it. Place one command button, position it on top right side of the screen as shown and change its name property to 'back', style property to' graphical' and back¬ground colour property to 'green.'
Since Microsoft Word is used in the program, it requires a reference. For this, select 'references' option from' project' menu and tick the boxes against Microsoft Word 11.0 and Microsoft Office 11.0 object library options. The decimal number '11.0' is nothing but fue version of MS Office installed in your system.
A common dialogue control is also used in the program. So select 'components' from' project' menu, tick the box against Microsoft Common Dialog Control 6.0 and click 'ok' button. Place one command button on the form at the bottom, resize and position it as shown in Screenshot 2 and change the name property to 'Pagel.' The shape of the command button is designed using MS Paint application and saved as the pagel. bmp file in your system. Then create a control array of it (copy-and-paste procedure) and place three more command buttons as shown. Change the picture property of each button to 'bitmap' and select associated bmp files similar to the first button's page1.bmp file.
Since menus are used in the article, these can be added on the form as shown in Screenshot 3. To add a menu item, select 'menu editor' from 'tools' menu and you will get the menu editor screen as shown in. Add the first menu item as shown, type 'file' in the caption property and 'filemenu' in the name property, leave the index property blank and tick the boxes against 'enabled' and 'visible' options. Use right arrow mark in the menu editor to add pull-down menu or submenu items.
A 'nurndurny' menu is used as a pop-up menu with its index option as blank. Note that if the index property of the parent level menu item is left blank, either it allows use of pull-down/ sub-menu items as separate click events if the name property is different or as popup menu if the name property is the same (observe the table). Similarly, add all other main menu and sub-menu items, change their captions, names and indices and enable as listed in the table.
Some important properties of the controls used in the project are: After setting all the desired properties, the output form of the program will appear as shown in.
|
|
 |
|
 |
|
|
 |
|
 |
|