DESIGN
Application - Setting Properties
Set properties of the form,3 Frames, 7 Option Buttons, 6 Check Box, 2 Command
Buttons
DESIGN
Application - Setting Properties
Set properties of the form,1 Frame, 4 Labels,1 List Box,2 Combo box,2 Command
Buttons
OUTPUT
3. Application to design a form similar to font dialog box.
DESIGN
Application - Setting Properties
Set properties of the form, 4 buttons, 10 Control Array Buttons, 6 labels, 1Textbox,
3 Combo box:
DESIGN
Application - Setting Properties
Set properties of the form, 10 Control Array Buttons, 1 label, 10 Command Buttons
Sl.No Control / Object Property Value
1 Form1 Caption Calculator
2 Label1 Alignment Right Justify
Appearance Flat
Borderstyle Fixed Single
Caption [Blank]
Font Size 18
3 Command1[0] Caption 0
4 Command1[1] Caption 1
5 Command1[2] Caption 2
6 Command1[3] Caption 3
7 Command1[4] Caption 4
8 Command1[5] Caption 5
9 Command1[6] Caption 6
10 Command1[7] Caption 7
11 Command1[8] Caption 8
12 Command1[9] Caption 9
13 Command2 Caption .
14 Command3 Caption =
15 Command4 Caption /
16 Command5 Caption *
17 Command6 Caption -
18 Command7 Caption +
19 Command8 Caption CLS
20 Command9 Caption Sqrt
21 Command10 Caption +/-
22 Command11 Caption ^
CODING
OUTPUT
5. Application with drive, directory, file list, picture box to
display the selected image.
DESIGN
Application - Setting Properties
Set properties of the form, 3 Label box, 1 Drive List box, 1 DirListBox, 1
FileListBox, 1 Picture Box, 1 Image Box
DESIGN
Application - Setting Properties
Set properties of the form, 4 Labels,1 Shape,1 Command Buttons,1 Vertical Scroll
Bar.
DESIGN
Application - Setting Properties
Set properties of the 1 MDIForm,2 forms,4 Label Box,4 Text Box, 4 Command
Buttons.
For MDIForm
DESIGN
Application - Setting Properties
Set properties of the form, 1Text box, 1 Drive List box, 1 DirListBox, 1 FileListBox,
1 Windows Media Player,1 Command Button.
To Enable WINDOWS MEDIAPLAYER Control
1. Go to Project in the menu bar.
2. Select Components.
3. Check the Windows Media Player in the Controls tab.
4. Click Apply & then Close.
Sl. No Control / Object Property Value
1 Form1 Caption MULTIMEDIA PLAYER
2 Text1 Text [Blank]
3 Command1 Caption PLAY
CODING
Coding for Form:
Private Sub Form_Load()
WindowsMediaPlayer1.Visible = False
End Sub
Coding for Drive List box:
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Coding for Dir List box:
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Coding for File List box:
Private Sub File1_Click()
Text1.Text = Dir1.Path + "\" + File1.FileName
End Sub
Coding for PLAY Command:
Private Sub Command1_Click()
WindowsMediaPlayer1.Visible = True
WindowsMediaPlayer1.URL = Text1.Text
End Sub
OUTPUT
9. Application to manage student details using DAO.
DESIGN
Application - Setting Properties
Set properties of the form, 4 Labels,4 Command Buttons,3 Text Boxes,1 Data.
1. In menu bar go to Add-Ins → Visual Data Manager Dialog box called Visdata
will open.
2. In that select File → New → Microsoft access → Version 7.0MDB [Microsoft
Data Base].
3. Give the file name (Database Name) Eg: STUDENT and then click Save.
4. Right click on Database Window & Select New Table.
5. Table Structure Dialog box will open, type the Table Name which you want to
create Eg: STUDENT, & click on Add Field give the field Name as NAME &
Click OK.
6. Give another field name as REG No select the type as Integer &click OK.
7. Give another field name as Address, click OK then Close.
8. Click on Build the Table.
9. Right click on the STUDENT option which is available in the database window,
Select OPEN.
10. Dynaset: STUDENT dialog box will open click Add & Give the inputs & click
UPDATE, repeat this for 2 or 3 inputs. & close the Database Window.
11. Open the design window Select the Data1 Control and change the properties
DatabaseName Select the data base which is saved in My Documents Eg:
STUDENT.mdb & Click OPEN.
12. In Properties select RecordSource & Select the Table Name Eg: STUDENT.
13. Select the Text1 control in the design window and change the properties of
DataSource as Data1 & select the DataField & Select the Attribute Name.
14. Repeat the same process for Text2 & Text3.
OUTPUT