home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "My Backyp Utility"
- ClientHeight = 3165
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5895
- LinkTopic = "Form1"
- ScaleHeight = 3165
- ScaleWidth = 5895
- StartUpPosition = 3 'Windows Default
- Begin VB.Frame Frame1
- Caption = "Select day of month"
- Height = 1935
- Index = 2
- Left = 5760
- TabIndex = 10
- Top = 840
- Width = 2775
- Begin VB.ComboBox cboDay
- Height = 315
- ItemData = "Frames.frx":0000
- Left = 480
- List = "Frames.frx":0061
- Style = 2 'Dropdown List
- TabIndex = 11
- Top = 840
- Width = 1815
- End
- End
- Begin VB.Frame Frame1
- Caption = "Select weekday"
- Height = 1935
- Index = 1
- Left = 2880
- TabIndex = 8
- Top = 2880
- Width = 2775
- Begin VB.ComboBox cboWeekday
- Height = 315
- ItemData = "Frames.frx":00D8
- Left = 480
- List = "Frames.frx":00F1
- Style = 2 'Dropdown List
- TabIndex = 9
- Top = 840
- Width = 1815
- End
- End
- Begin VB.Frame Frame1
- Caption = "Select time "
- Height = 1935
- Index = 0
- Left = 2880
- TabIndex = 4
- Top = 840
- Width = 2775
- Begin VB.OptionButton optTime
- Caption = "P.M."
- Height = 255
- Index = 1
- Left = 1560
- TabIndex = 7
- Top = 1320
- Width = 735
- End
- Begin VB.OptionButton optTime
- Caption = "A.M."
- Height = 255
- Index = 0
- Left = 480
- TabIndex = 6
- Top = 1320
- Value = -1 'True
- Width = 735
- End
- Begin VB.ComboBox cboTime
- Height = 315
- ItemData = "Frames.frx":0135
- Left = 480
- List = "Frames.frx":0181
- TabIndex = 5
- Text = "Combo1"
- Top = 840
- Width = 1815
- End
- End
- Begin VB.OptionButton optFrequency
- Caption = "Once a month"
- Height = 330
- Index = 2
- Left = 360
- TabIndex = 3
- Top = 2160
- Width = 2130
- End
- Begin VB.OptionButton optFrequency
- Caption = "Once a week"
- Height = 330
- Index = 1
- Left = 360
- TabIndex = 2
- Top = 1560
- Width = 2130
- End
- Begin VB.OptionButton optFrequency
- Caption = "Once a day"
- Height = 330
- Index = 0
- Left = 345
- TabIndex = 1
- Top = 960
- Value = -1 'True
- Width = 2130
- End
- Begin VB.Label Label1
- Caption = "Please select the frequency of backup operations"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 420
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 6870
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- ' pile the Frames one over the other and make
- ' them visible or invisible
- Dim i As Integer
- For i = 0 To 2
- Frame1(i).Move Frame1(0).Left, Frame1(0).Top, Frame1(0).Width, Frame1(0).Height
- Frame1(i).Visible = optFrequency(i).Value
- Next
- ' init combo boxes
- cboTime.ListIndex = 0
- cboWeekday.ListIndex = 0
- cboDay.ListIndex = 0
- End Sub
- Private Sub optFrequency_Click(Index As Integer)
- Dim i As Integer
- For i = 0 To 2
- Frame1(i).Visible = (Index = i)
- Next
- End Sub
-