''在主程序中设置日期为"01-11-25"以前可以使用程序,在屏幕中放一个text1
Dim Wordpass As String
Private Sub Form_Load()
Wordpass = "bbbb" '设置注册码
If Now() > "01-11-25" Then
MsgBox "此程序已到期,请注册"
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
If Trim(Text1.Text) <> Wordpass Then
Unload Me
End If
End If
End Sub