0

dear sir
my projct include login form .it in side availbele serial key and activation key .when i insert
serialkey and activaion key i want to start my second form .but when i close my second form (fully application)
after when i restart my application i want to start wit hout my logging form. please help me.
thankyou
wansa

'loging form

 If sm.CheckKey(key) Then
            MessageBox.Show("Activation was successful")
            If My.Settings.Setting = False Then
                settings.Save()
                Form2.Show()
                Me.Close()
            End If
        Else
            MessageBox.Show("Activation was unsuccessful")
        End If
    End Sub
End Class

'second form

Public Class Form2
    Dim settings As New My.MySettings
    Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If My.Settings.Setting = False Then
            settings.Save()
            Form1.Close()
        End If
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        End
    End Sub
End Class
Attachments ac.png 3.92 KB acc.png 34.11 KB
2
Contributors
2
Replies
24
Views
6 Months
Discussion Span
Last Post by tinstaafl
0

dear sir

actually i want to one time activation method.

thank you

wansa

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.