mrgcat
New Member
Hi
I am useing microsoft visual basic 2010 and i have a question
How can i say in the program if the program has been opened before it will skip the serial part and go straight into the main Webapple.
P.S. Yes i did write all of this, and I am only 12 and Webapple is my own personal browser made in vb 2010
I am useing microsoft visual basic 2010 and i have a question
Code:
Option Infer On
Public Class Form1
Dim serial = "1232-1234"
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
Label2.Hide()
Label3.Hide()
If TextBox1.Text = serial Then
Label2.Show()
Label3.Hide()
Else
Label2.Hide()
Label3.Show()
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = serial Then
Me.Hide()
MsgBox("Thanks for choosing Webapple", MsgBoxStyle.OkOnly, "Thank You")
Webapple.Show()
Else
MsgBox("Invalid serial number!", MsgBoxStyle.OkOnly, "Invalid Serial!")
End If
End Sub
How can i say in the program if the program has been opened before it will skip the serial part and go straight into the main Webapple.
P.S. Yes i did write all of this, and I am only 12 and Webapple is my own personal browser made in vb 2010