home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B94BFC0-C838-11D2-A9B4-0000B454B114}#1.0#0"; "APPEXP~1.OCX"
- Begin VB.Form TestApp
- Caption = "Test Application"
- ClientHeight = 2535
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 7725
- LinkTopic = "Form1"
- ScaleHeight = 2535
- ScaleWidth = 7725
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command3
- Caption = "Register App"
- Height = 375
- Left = 6000
- TabIndex = 9
- Top = 1800
- Width = 1335
- End
- Begin VB.CommandButton pbExit
- Caption = "Exit Test App"
- Height = 375
- Left = 4200
- TabIndex = 8
- Top = 1800
- Width = 1455
- End
- Begin VB.TextBox ebDaysRun
- Height = 285
- Left = 2880
- TabIndex = 7
- Text = "Text3"
- Top = 1200
- Width = 855
- End
- Begin VB.TextBox ebTimesRun
- Height = 285
- Left = 2880
- TabIndex = 6
- Text = "Text2"
- Top = 840
- Width = 855
- End
- Begin VB.TextBox ebInstDays
- Height = 285
- Left = 2880
- TabIndex = 5
- Text = "Text1"
- Top = 480
- Width = 855
- End
- Begin VB.CommandButton Command2
- Caption = "Write Registry"
- Height = 375
- Left = 2280
- TabIndex = 1
- Top = 1800
- Width = 1575
- End
- Begin VB.CommandButton Command1
- Caption = "Read Registry"
- Height = 375
- Left = 360
- TabIndex = 0
- Top = 1800
- Width = 1575
- End
- Begin EXPIREOCXLib.ExpireOCX TestExp
- Left = 6000
- Top = 600
- _Version = 65536
- _ExtentX = 873
- _ExtentY = 661
- _StockProps = 0
- DeveloperCode = "DevCode"
- EndUserName = "Unregistered"
- ExpireOn = 1
- LastRunMonth = 12
- LastRunDay = 31
- LastRunYear = 2035
- Prefix = ""
- RegistryCode = "AppExpireTestApp"
- SerialNumber = ""
- UserCode = ""
- CurrentVersion = "1.55"
- MaxVersion = "1.99"
- EncryptReg = -1 'True
- HideSN = 0 'False
- End
- Begin VB.Label Label3
- Caption = "Number of days run:"
- Height = 255
- Left = 360
- TabIndex = 4
- Top = 1200
- Width = 1575
- End
- Begin VB.Label Label2
- Caption = "Number of times run:"
- Height = 255
- Left = 360
- TabIndex = 3
- Top = 840
- Width = 1575
- End
- Begin VB.Label Label1
- Caption = "Number of days since Installion"
- Height = 255
- Left = 360
- TabIndex = 2
- Top = 480
- Width = 2295
- End
- Attribute VB_Name = "TestApp"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- TestExp.ReadRegistry
- End Sub
- Private Sub Command2_Click()
- TestExp.WriteRegistry
- End Sub
- Private Sub Command3_Click()
- TestExp.ShowRegistrationDialog
- End Sub
- Private Sub Form_Load()
- ebInstDays.Text = TestExp.DaysSinceInstall
- ebTimesRun.Text = TestExp.GetTimesExcuted
- ebDaysRun.Text = TestExp.GetDaysExecuted
- End Sub
- Private Sub pbExit_Click()
- Unload TestApp
- End Sub
-