login form

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
6 posts Page 1 of 1
Contributors
User avatar
Sanket
Just Registered
Just Registered
Posts: 6
Joined: Fri Dec 27, 2013 1:19 am

login form
Sanket
there is login form..
before they see the tools..
they must login first ?

help me :) thanks
My Twitter Account
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Re: login form
smashapps
A very basic way of doing this is to use two settings for example username and password.

Use two forms, one is the form with the tools and the second is the login form. the startup form is the login. Use two text boxes and a button, when you click the button check the textboxes text to see if they match the settings.

For example:
Code: Select all
If txtUser.text = My.Settings.username Then
            'the username was correct, now check the password'
            If txtPassword.text = My.Settings.password Then
                'password was correct'
                frmTools.Show()
            Else
                MsgBox("Password was incorrect!")
            End If
        Else
            MsgBox("username was incorrect!")
        End If
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
Sanket
Just Registered
Just Registered
Posts: 6
Joined: Fri Dec 27, 2013 1:19 am

Re: login form
Sanket
thanks man.. i will try this :)
My Twitter Account
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Re: login form
smashapps
If you have no luck with this I'll make a better example and share it with you :)

I'll even help via Teamviewer if you'd like.
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
Sanket
Just Registered
Just Registered
Posts: 6
Joined: Fri Dec 27, 2013 1:19 am

Re: login form
Sanket
yes, can u help me via team viewer?
My Twitter Account
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Re: login form
smashapps
I've replied to your private message.
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
6 posts Page 1 of 1
Return to “Tutorial Requests”