Home Register Members List Search Today's Posts Mark Forums Read

Go Back   TechFuels Forum > Hardware > CPU & Components

Reply
 
LinkBack Thread Tools
willi
Senior Member
 

willi is offline  
Old 02-18-2009, 05:39 AM
  #1 (permalink)
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adobe Creative Suite 3 Design Premium Upgrade Design Premium andrea55 General Software Terms 0 01-02-2009 05:28 AM
ATX form factor wentique Motherboards & Memory 0 10-24-2008 08:01 AM
Form Factor techno23 Hard Disk 0 03-21-2008 09:39 AM
Form Factor vandana43 Motherboard 0 03-19-2008 08:08 AM
AMD DTX form factor vandana43 CPU & Components 0 03-10-2008 06:56 AM


All times are GMT +1. The time now is 03:41 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Copyright Techfuels -->
SEO by SubmitEdge


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151