|
[VB.Net] Offline Login System
|
|
07-06-2010, 06:55 AM
Post: #1
|
|||
|
|||
|
[VB.Net] Offline Login System
Hi all,
I'm going to show you how to make a 'Offline Login System'. This is my first tutorial so please only give me constructive comments Form2 : Add 1 Button Add 1 Label Add 1 Textbox Form2 : Quote:Imports System.IO Quote:Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Quote:Public Shared Function MD5(ByVal Text As String, Optional ByVal Seperator As String = Nothing) As String Now we are going to make a new form. Project > Add > New item > Windows Form Add 1 Button Add 1 Label Add 1 TextBox Double-Click Button1 And add the following code : Quote: Quote:If My.Computer.FileSystem.ReadAllText("C:\Password.txt") = MD5(TextBox1.Text) Then This will read the .txt file we maked and checks if it match the password. Now add this code again : Quote:Public Shared Function MD5(ByVal Text As String, Optional ByVal Seperator As String = Nothing) As String I hope this helped someone ;) |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| [VB6] Login | 88power88 | 6 | 645 |
06-13-2010 03:45 AM Last Post: longnha |
|
User(s) browsing this thread: 2 Guest(s)



