Контрольная работа: Адресная книга на языка Visual Basic
Private Sub mnuEdit_Click()
butEdit_Click
End Sub
Private Sub mnuMain_Click()
If bPoisk Then
mnuAdd.Enabled = False
mnuDelete.Enabled = False
mnuEdit.Enabled = False
Else
mnuAdd.Enabled = True
mnuDelete.Enabled = True
mnuEdit.Enabled = True
End If
End Sub
Private Sub Slider_Change()
lstMain.SetValue Slider.Value
End Sub
Private Sub PosControls()
lstMain.Height = ScaleHeight - lstMain.Top
Slider.Height = lstMain.Height
Slider.SetMax lstMain.GetMax
Panel.Left = ScaleWidth - Panel.Width - 11
butExit.Left = Panel.Left
Slider.Left = Panel.Left - Slider.Width - 8
lstMain.Width = Slider.Left - lstMain.Left - 8
butExit.Top = lstMain.Height
End Sub
FrmEdit
Option Explicit