home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmOptions
- Caption = "Option Buttons"
- ClientHeight = 2712
- ClientLeft = 1092
- ClientTop = 1488
- ClientWidth = 2388
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 7.8
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2712
- ScaleWidth = 2388
- Begin VB.CommandButton cmdStatus
- Caption = "Determine Status"
- Height = 495
- Left = 240
- TabIndex = 4
- Top = 1800
- Width = 1935
- End
- Begin VB.PictureBox picStatus
- Height = 255
- Left = 480
- ScaleHeight = 204
- ScaleWidth = 1404
- TabIndex = 3
- Top = 2400
- Width = 1455
- End
- Begin VB.Frame fraOptions
- Caption = "Options"
- Height = 1575
- Left = 240
- TabIndex = 0
- Top = 120
- Width = 1815
- Begin VB.OptionButton optOpt2
- Caption = "Option2"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 960
- Width = 1335
- End
- Begin VB.OptionButton optOpt1
- Caption = "Option1"
- Height = 375
- Left = 120
- TabIndex = 1
- Top = 360
- Width = 1215
- End
- End
- Attribute VB_Name = "frmOptions"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdStatus_Click()
- picStatus.Cls
- If optOpt1.Value Then
- picStatus.Print "Option1 is on."
- ElseIf optOpt2.Value Then
- picStatus.Print "Option2 is on."
- End If
- End Sub
- Private Sub Form_Load()
- optOpt1 = False 'Turn off optOpt1
- optOpt2 = False 'Turn off optOpt2
- End Sub
-