12-25-2021, 11:33 AM
Hi , ktu e boni 1 tutorial si te krijojm nje program - Advanced Mode :
Se pari e merrni : Visual Basic 2008 Xpress
E instaloni - Visual Basic 2008 Xpress dhe vazhdoni sipas tutorialit:
Regards
Jeppo.
Se shpejti edhe shum tuturiale te tjera vetem per eSK ! (Y)
Se pari e merrni : Visual Basic 2008 Xpress
E instaloni - Visual Basic 2008 Xpress dhe vazhdoni sipas tutorialit:
Code :
Code:
Close Button-- :
Me.Close()
Create Button -- :
Dim usr As String = TextBox1.Text
Dim pass As String = TextBox2.Text
If usr = "" Then
MsgBox("You must choose a username", MsgBoxStyle.Critical)
Else
If pass = "" Then
MsgBox("You must choose a password", MsgBoxStyle.Critical)
Else
If My.Computer.FileSystem.DirectoryExists("C:\login\" & usr) Then
MsgBox("The username already exists", MsgBoxStyle.Critical)
Else
If My.Computer.FileSystem.DirectoryExists("C:\login") = False Then
MkDir("C:\login")
End If
MkDir("C:\login\" & usr)
Dim escrever_pass As New System.IO.StreamWriter("C:\login\" & usr & "\pass.txt")
escrever_pass.Write(pass)
escrever_pass.Close()
MsgBox("Your account has been created!")
End If
End If
End If
Login Button -- :
Dim usr As String = TextBox1.Text
Dim pass As String = TextBox2.Text
If usr = "" Then
MsgBox("You must choose a username", MsgBoxStyle.Critical)
Else
If pass = "" Then
MsgBox("You must choose a password", MsgBoxStyle.Critical)
Else
If My.Computer.FileSystem.DirectoryExists("C:\login\" & usr) = False Then
MsgBox("The username doesn't exist", MsgBoxStyle.Critical)
Else
Dim baixar_pass As String = My.Computer.FileSystem.ReadAllText("C:\login\" & usr & "\pass.txt")
If pass = baixar_pass Then
MsgBox("You're logged in")
Else : MsgBox("The password is incorrect!", MsgBoxStyle.Critical)
End If
End If
End If
End IfRegards
Jeppo.
Se shpejti edhe shum tuturiale te tjera vetem per eSK ! (Y)
#1. UCP Utilities
#2. CS Clean by Jeppo.
#3. eSK HLTV Models 1.1 ( Works with UCP)
------------------------------
#4.de_mini_esk
#5.awp_esk2012
#6.awp_eskps
#7.awp_kosovo
#2. CS Clean by Jeppo.
#3. eSK HLTV Models 1.1 ( Works with UCP)
------------------------------
#4.de_mini_esk
#5.awp_esk2012
#6.awp_eskps
#7.awp_kosovo


![[Image: bb421473.dp_vse_visualbasic_banner(en-us).jpg]](http://i.msdn.microsoft.com/bb421473.dp_vse_visualbasic_banner(en-us).jpg)
![[Image: bb421473.dp_vse_visualcsharp_banner(en-us).jpg]](http://i.msdn.microsoft.com/bb421473.dp_vse_visualcsharp_banner(en-us).jpg)
![[Image: bb421473.dp_vse_visualcplusplus_banner(en-us).jpg]](http://i.msdn.microsoft.com/bb421473.dp_vse_visualcplusplus_banner(en-us).jpg)
![[Image: bb421473.dp_vse_visualwebdeveloper_banner(en-us).jpg]](http://i.msdn.microsoft.com/bb421473.dp_vse_visualwebdeveloper_banner(en-us).jpg)



![[Image: vloFgvK.gif]](http://i.imgur.com/vloFgvK.gif)