home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form exam2
- Caption = "Visual Basic Registry Manipulation"
- ClientHeight = 3465
- ClientLeft = 2190
- ClientTop = 2325
- ClientWidth = 4500
- LinkTopic = "Form1"
- ScaleHeight = 3465
- ScaleWidth = 4500
- Begin VB.CommandButton cmdDelete
- Caption = "&Delete"
- Height = 345
- Left = 1800
- TabIndex = 8
- ToolTipText = "Delete the Key"
- Top = 2610
- Width = 855
- End
- Begin VB.CommandButton cmdSave
- Caption = "&Save"
- Height = 345
- Left = 2700
- TabIndex = 4
- ToolTipText = "Save The Changes"
- Top = 2610
- Width = 855
- End
- Begin VB.CommandButton cmdExit
- Caption = "E&xit"
- Height = 345
- Left = 3600
- TabIndex = 3
- ToolTipText = "Exit the Application"
- Top = 2610
- Width = 855
- End
- Begin VB.TextBox txtValue
- Alignment = 1 'Right Justify
- Height = 300
- Left = 1920
- TabIndex = 2
- ToolTipText = "Alter the Value of the Key if it is Incorrect"
- Top = 2100
- Width = 2475
- End
- Begin VB.ListBox lstkeys
- Height = 1230
- Left = 1920
- TabIndex = 1
- ToolTipText = "Select the Key to Retreive the Setting for"
- Top = 780
- Width = 2505
- End
- Begin VB.ComboBox comAddin
- Height = 315
- Left = 1950
- Style = 2 'Dropdown List
- TabIndex = 0
- ToolTipText = "Select The Addin You Would like Additioanal Information About"
- Top = 360
- Width = 2445
- End
- Begin VB.Label lblKeyValue
- Alignment = 1 'Right Justify
- Caption = "Key Value"
- Height = 195
- Left = 510
- TabIndex = 7
- Top = 2130
- Width = 1275
- End
- Begin VB.Label lblKeys
- Alignment = 1 'Right Justify
- Caption = "Keys"
- Height = 195
- Left = 510
- TabIndex = 6
- Top = 810
- Width = 1275
- End
- Begin VB.Label lblAddin
- Alignment = 1 'Right Justify
- Caption = "Add in"
- Height = 195
- Left = 510
- TabIndex = 5
- Top = 360
- Width = 1275
- End
- Attribute VB_Name = "exam2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdDelete_Click()
- DeleteSetting "Microsoft Visual Basic Addins", comAddin.Text, lstkeys.Text
- End Sub
- Private Sub cmdExit_Click()
- SaveSetting "exam2", "Position", "top", Me.Top
- SaveSetting "exam2", "Position", "left", Me.Left
- SaveSetting "exam2", "Position", "height", Me.Height
- SaveSetting "exam2", "Position", "width", Me.Width
- Unload Me
- End Sub
- Private Sub cmdSave_Click()
- SaveSetting "Microsoft Visual Basic Addins", comAddin.Text, lstkeys.Text, txtValue.Text
- End Sub
- Private Sub comAddin_Click()
- Dim vValues As Variant
- Dim nCount As Integer
- vValues = GetAllSettings("Microsoft Visual Basic Addins", comAddin.Text)
- For nCount = LBound(vValues, 1) To UBound(vValues, 1)
- lstkeys.AddItem vValues(nCount, 0)
- Next nCount
- End Sub
- Private Sub Form_Load()
- ' Set up the ComboBox with Know Data
- comAddin.AddItem "VBAddinToolbar"
- comAddin.AddItem "VisData"
- comAddin.AddItem "VisualComponentManager"
- comAddin.ListIndex = 0
- If Len(GetSetting("exam2", "Position", "top")) <> 0 Then
- Me.Top = GetSetting("exam2", "Position", "top")
- End If
- If Len(GetSetting("exam2", "Position", "left")) <> 0 Then
- Me.Left = GetSetting("exam2", "Position", "left")
- End If
- If Len(GetSetting("exam2", "Position", "width")) <> 0 Then
- Me.Width = GetSetting("exam2", "Position", "width")
- End If
- If Len(GetSetting("exam2", "Position", "Height")) <> 0 Then
- Me.Height = GetSetting("exam2", "Position", "Height")
- End If
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- Set exam2 = Nothing
- End Sub
- Private Sub lstkeys_Click()
- txtValue.Text = GetSetting("Microsoft Visual Basic Addins", comAddin.Text, lstkeys.Text)
- End Sub
-