You are on page 1of 9

INSEP 2011

FER40102

INDIVIDUAL REPORT

NAME : AMYRUL BIN HAJI HASHIM

IC NUMBER : 830323-02-5935

MODULE : PENGATURCARAAN KOMPUTER

COURSE : COMPUTER NETWORK & APPLICATION

FACULTY : FACULTY ELECTRICAL & ELECTRONIC

DATE OF SUBMISSION: 7/2/2011


TELEPHONE DIRECTORY APLICATION

This application introduces on how to control the width of the form by calling two subroutines that are
resided within a form module.

Private Sub cmdActive_Click()

frmActive.Show

End Sub

Private Sub cmdHide_Click()

'call the HideHelp subroutine to set the width of the form

HideHelp

End Sub AMYRUL BIN HJ HASHIM FE 100283


Private Sub cmdHow_Click()

'call the Expand to expand the width of the form

Expand

End Sub

Public Sub Expand()

'Expand the width of form

With Me

.Height = 8565

.Width = 13200

End With

End Sub

Private Sub cmdSearch_Click()

'to open Search form

frmSearch.Show

End Sub

Private Sub Form_Load()

'call the HideHelp subroutine to set the width of the form

HideHelp

End Sub

Public Sub HideHelp()

'Hide the Help by reducing the width of form

With Me AMYRUL BIN HJ HASHIM FE 100283


.Height = 8565

.Width = 7680

End With

End Sub

AMYRUL BIN HJ HASHIM FE 100283


SEARCH BUTTON

Private Sub cmdSearch_Click()

'to open Search form

frmSearch.Show

End Sub

AMYRUL BIN HJ HASHIM FE 100283


ACTIVE WINDOW BUTTON

Private Sub cmdActive_Click()

frmActive.Show

End Sub
AMYRUL BIN HJ HASHIM FE 100283

HOW TO USE TELEPHONE DIRECTORY BUTTON

Private Sub cmdHow_Click()

'call the Expand to expand the width of the form

Expand

End Sub

Private Sub cmdHow_Click()

'call the Expand to expand the width of the form

Expand

End Sub
AMYRUL BIN HJ HASHIM FE 100283

HIDE BUTTON

Private Sub cmdHide_Click()

'call the HideHelp subroutine to set the width of the form

HideHelp

End Sub
AMYRUL BIN HJ HASHIM FE 100283

You might also like