VERSION 5.00
Begin VB.Form Sets 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Options"
   ClientHeight    =   1665
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4020
   Icon            =   "Options.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1665
   ScaleWidth      =   4020
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "Cancel"
      Height          =   375
      Left            =   2040
      TabIndex        =   4
      Top             =   1200
      Width           =   735
   End
   Begin VB.CommandButton Command1 
      Caption         =   "OK"
      Height          =   375
      Left            =   1200
      TabIndex        =   3
      Top             =   1200
      Width           =   735
   End
   Begin VB.CheckBox Opt 
      Caption         =   "Clear Command Window after each command"
      Height          =   255
      Index           =   2
      Left            =   240
      TabIndex        =   2
      Top             =   840
      Width           =   3615
   End
   Begin VB.CheckBox Opt 
      Caption         =   "Automatic add CrLf to command string"
      Height          =   255
      Index           =   1
      Left            =   240
      TabIndex        =   1
      Top             =   480
      Width           =   3255
   End
   Begin VB.CheckBox Opt 
      Caption         =   "Minimize to System Tray"
      Height          =   255
      Index           =   0
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   2415
   End
End
Attribute VB_Name = "Sets"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
Dim i As Integer, i1 As Integer
i = Opt.Count
For i1 = 0 To i - 1
SaveSetting ProgId, "Options", "Option_" + Trim(Str(i1)), Trim(Str(Opt(i1).Value))
Opts(i1) = Opt(i1).Value
Next i1
Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Dim i As Integer, i1 As Integer
i = Opt.Count
For i1 = 0 To i - 1
Opt(i1).Value = Opts(i1)
Next
End Sub
