GFRecentString/Testmod.frm
VERSION 5.00
Begin VB.Form Testmod
Caption = "Form1"
ClientHeight = 2665
ClientLeft = 52
ClientTop = 403
ClientWidth = 4056
LinkTopic = "Form1"
ScaleHeight = 2665
ScaleWidth = 4056
StartUpPosition = 3 'Windows‑Standard
Begin VB.TextBox Text1
Height = 247
Left = 2210
TabIndex = 3
Text = "Combo11"
ToolTipText = "control name (reg sub key)"
Top = 1365
Width = 1768
End
Begin VB.CommandButton Command2
Caption = "Reset"
Height = 338
Left = 2210
TabIndex = 2
Top = 585
Width = 1768
End
Begin VB.ComboBox Combo1
Height = 273
Left = 65
TabIndex = 1
Text = "Combo1"
Top = 195
Width = 2028
End
Begin VB.CommandButton Command1
Caption = "Perform Action"
Height = 338
Left = 2210
TabIndex = 0
Top = 130
Width = 1768
End
End
Attribute VB_Name = "Testmod"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'(c)2001 by Louis. Test form for GFRecentStringmod.
Private Sub Form_Load()
'on error resume next
Call GFRecentString_Initialize(HKEY_LOCAL_MACHINE, "Software")
Call GFRecentString_UpdateComboBox(Text1.Text, Combo1)
End Sub
Private Sub Command1_Click()
'on error resume next
Call GFRecentString_ReceiveString(Text1.Text, Combo1.Text)
Call GFRecentString_UpdateComboBox(Text1.Text, Combo1)
End Sub
Private Sub Command2_Click()
'on error resume next
Call GFRecentString_Reset(Text1.Text)
End Sub
[END OF FILE]