Login with Combobox and Multiple Users

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
9 posts Page 1 of 1
Contributors
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Hi All
Here is another very simple Tutorial on how to add a Login page to your applications and use a Combobox to add as may people as you like with different passwords. This can be usefull if you are designing something for multiple users.

The code goes on the Enter Button
Code: Select all
If ComboBox1.SelectedItem = "David Hurst" And TextBox1.Text = "admin" Then
            MsgBox("Welcome David")
            Me.Hide()
            Form2.Show()
        End If
        If ComboBox1.SelectedItem = "Mike Freder" And TextBox1.Text = "Coder" Then
            MsgBox("Welcome Mike")
            Me.Hide()
            Form3.Show()
        End If
        If ComboBox1.SelectedItem = "Gary Wilkinson" And TextBox1.Text = "Tech Help" Then
            MsgBox("Welcome Gary")
            Me.Hide()
            Form4.Show()
        End If
        If ComboBox1.SelectedItem = "Mary Tyler" And TextBox1.Text = "Payroll" Then
            MsgBox("Welcome Mary")
            Me.Hide()
            Form5.Show()
        End If
        If ComboBox1.SelectedItem = "Rachel Weise" And TextBox1.Text = "Management" Then
            MsgBox("Welcome Rachel")
            Me.Hide()
            Form6.Show()
        End If
I'm sure this could be adapted for use for .Net applications as well.
I have used 5 names in my Combobox Example ( which you add in the Properties in the Collections tab)
and 1 textbox
and 6 forms ( each form links to Name that is selected )
and 1 button
But you can adapt it to suit yourselves.
Image

Image

Image

Image

Hope this is usefull to you all.

Chris
Image
User avatar
Cali Alec
VIP - Donator
VIP - Donator
Posts: 8
Joined: Fri Sep 04, 2009 2:23 am

Is it necessary to have your address in the credits? omg;
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Hi Cali
Its a Fictitious Name :lol: But you are willing to call me or email me at the address if you like :P
Image
User avatar
CodemaN
VIP Access - Denied
VIP Access - Denied
Posts: 74
Joined: Fri Sep 18, 2009 3:18 pm

great program!!!!
User avatar
Usman55
VIP - Site Partner
VIP - Site Partner
Posts: 2821
Joined: Thu Dec 24, 2009 7:52 pm

Nice one! But everyone can crack the password easily!
Image
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Nice one! But everyone can crack the password easily!
"Is that so"

Please POST a TUTORIAL on How YOU can Stop People Cracking it ;)
Image
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

hungryhounduk wrote:
Nice one! But everyone can crack the password easily!
"Is that so"

Please POST a TUTORIAL on How YOU can Stop People Cracking it ;)
or better yet show how they crack it
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

or better yet show how they crack it
mmm Sorry not on this Site ( read the Forum Rules) cooll;
Image
User avatar
35000vr
Top Poster
Top Poster
Posts: 176
Joined: Sat Mar 06, 2010 5:09 pm

Cool.But I already knew this.
‼ <----- Copy it,it is together and if you backspace it it will both erase
☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"<-----Some Cool symbols.
♂<-----Boy Symbol :)
²ƽ<--------Mini 2 and 5!
ð<----Not sure what it is.
☺☻<-----Smiles
♪♫<----Music Notes
Others:ß┬ƒ○║■ã¿┼↑
9 posts Page 1 of 1
Return to “Tutorials”