Tampilan Peripheral Tampilan Utama Server

Frans A. Siagian : Perancangan Komunikasi Client Server Dan Sistem Database, 2008 USU Repository © 2009 Option1.Value = False Me.Hide End If End If End If End Sub

4.2.3.1.4 Tampilan Peripheral

Bentuk tampilan peripheral ketika dijalankan dapat dilihat pada Gambar 4.37. Gambar 4.37 Tampilan Peripheral Kode programnya adalah sebagai berikut: Option Explicit Private Declare Function RegOpenKeyEx Lib advapi32 Alias RegOpenKeyExA ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, ByRef phkResult As Long As Long Private Declare Function RegQueryValueEx Lib advapi32 Alias RegQueryValueExA ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, ByRef lpType As Long, ByVal lpData As String, ByRef lpcbData As Long As Long Private Declare Function RegCloseKey Lib advapi32 ByVal hKey As Long As Long Private Sub Icon_ClickIndex As Integer On Error GoTo errorhandler If Index = 0 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL timedate.cpl ElseIf Index = 1 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1 ElseIf Index = 2 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL timedate.cpl ElseIf Index = 3 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL timedate.cpl ElseIf Index = 4 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,0 ElseIf Index = 5 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL joy.cpl ElseIf Index = 6 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL main.cpl 1 ElseIf Index = 7 Then frmStPrintServer.Show ElseIf Index = 8 Then Frans A. Siagian : Perancangan Komunikasi Client Server Dan Sistem Database, 2008 USU Repository © 2009 Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL main.cpl 0 ElseIf Index = 9 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0 ElseIf Index = 10 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL netcpl.cpl ElseIf Index = 11 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL password.cpl ElseIf Index = 12 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0 ElseIf Index = 13 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL mmsys.cpl 1 ElseIf Index = 14 Then Call ControlPanelsrundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0 End If Exit Sub errorhandler: MsgBox The selected function is not available on this system, vbCritical, Not available End Sub

4.2.3.2 Tampilan Utama Client