home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Planet Source Code Jumbo …e CD Visual Basic 1 to 7
/
3_2004-2005.ISO
/
Data
/
Zips
/
MaxProtect1797319252004.psc
/
Form10.frm
< prev
next >
Wrap
Text File
|
2004-09-25
|
6KB
|
198 lines
VERSION 5.00
Begin VB.Form Form10
BackColor = &H00FFFFFF&
BorderStyle = 3 'Fixed Dialog
Caption = "Trial Expired"
ClientHeight = 3360
ClientLeft = 45
ClientTop = 435
ClientWidth = 7170
ControlBox = 0 'False
LinkTopic = "Form10"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3360
ScaleWidth = 7170
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton next
Caption = "Next"
Default = -1 'True
Height = 735
Left = 5640
TabIndex = 7
Top = 2520
Width = 1455
End
Begin VB.OptionButton Option4
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Enter PUK Code"
Enabled = 0 'False
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 2520
TabIndex = 6
Top = 2160
Width = 1815
End
Begin VB.OptionButton Option3
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Close the software"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 2520
TabIndex = 5
Top = 2520
Width = 2175
End
Begin VB.OptionButton Option2
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Go to Main Start-UP Screen"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 2520
TabIndex = 4
Top = 1800
Width = 3015
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Go to Registration page"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 2520
TabIndex = 3
Top = 1440
Value = -1 'True
Width = 2655
End
Begin VB.PictureBox Picture1
BackColor = &H00FFFFFF&
BorderStyle = 0 'None
Height = 3015
Left = 120
Picture = "Form10.frx":0000
ScaleHeight = 3015
ScaleWidth = 2175
TabIndex = 0
Top = 120
Width = 2175
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Your 30 minute trial has Expired. What whould you like to do now?"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2520
TabIndex = 2
Top = 720
Width = 4455
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Your trial is now Expired"
BeginProperty Font
Name = "Arial"
Size = 18
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2520
TabIndex = 1
Top = 120
Width = 3975
End
End
Attribute VB_Name = "Form10"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal sBuffer As String, lSize As Long) As Long
Private Sub next_Click()
If Option1.Value = True Then
reg.labelpuk.Caption = GetSetting(Me.Name, "PUK", "TimesOpen")
Dim PCName As String
Dim P As Long
P = NameOfPC(PCName)
reg.Text1.Text = PCName
Form10.Visible = False
Form1.Visible = True
reg.Visible = True
End If
If Option2.Value = True Then
Form10.Visible = False
Form1.Visible = True
End If
If Option3.Value = True Then
Form10.Visible = False
End
End If
If Option4.Value = True Then
Form10.Visible = False
Form8.Visible = True
End If
End Sub
Public Function NameOfPC(MachineName As String) As Long
Dim NameSize As Long
Dim x As Long
MachineName = Space$(16)
NameSize = Len(MachineName)
x = GetComputerName(MachineName, NameSize)
End Function