Контрольная работа: Адресная книга на языка Visual Basic
butAbout.Visible = False
butDial.Visible = False
butOptions.Visible = False
frmEdit.Show
End Sub
Private Sub Command2_Click()
bPoisk = False
butAdd.Visible = True
butEdit.Visible = True
butDelete.Visible = True
butAbout.Visible = True
' butDial.Visible = True
butOptions.Visible = True
GetData
End Sub
Private Sub Form_DblClick()
WindowState = vbMinimized
End Sub
Private Sub Form_Load()
On Error Resume Next
GetData
SetWindowText hWnd, App.ProductName
Dim lngTop As Long, lngLeft As Long, lngWidth As Long, lngHeight As Long
lngTop = Reg.RegRead("HKCU\Book\Top")
lngLeft = Reg.RegRead("HKCU\Book\Left")
lngHeight = Reg.RegRead("HKCU\Book\Height")
lngWidth = Reg.RegRead("HKCU\Book\Width")
If lngHeight < 3510 Then lngHeight = 3510
If lngWidth < 6630 Then lngWidth = 6630