[SOLVED] Login form in Visual Studio 2010
2015-10-20, 02:54 PM,
(This post was last modified: 2015-10-20, 03:40 PM by gaabytzu.)
#1
Hi,
I need to make a login form in VB2010.
I have this code:

but i only get that error msg even if i put the password right.
can some onle help me with this?
tank you
Reply
2015-10-20, 03:19 PM,
#2
I'm not sure what you are planning to make, but a full code would be more usefull to understand what you are making.

because what i see is that you check if textbox1 contains the word "Password" and if you type something diffrent then password in the textbox you get the invalid password message.

[Image: elitebanner.gif]
Reply
2015-10-20, 03:33 PM,
#3
(2015-10-20, 03:19 PM)uploadbux Wrote: I'm not sure what you are planning to make, but a full code would be more usefull to understand what you are making.

because what i see is that you check if textbox1 contains the word "Password" and if you type something diffrent then password in the textbox you get the invalid password message.

Yes this is it.
But this code don't check if my password is good,i get only that error message
Reply
2015-10-20, 03:38 PM,
#4
In that case this: Else : MsgBox("Invalid Password!", MsgBoxStyle.Critical, "Error")

isn't good.

try something like:

else if(!Txtbox1.text = ("Password") then

You must use something like that cause this "!" means NOT. so the code i showed above is like: if textbox1.text is not password then...

it's been a while since i used .net coding so i'm not sure if that code would work but you must change your else statement.

[Image: elitebanner.gif]
Reply
2015-10-20, 03:40 PM,
#5
It works!
Thanks a lot mate!
Reply
2015-10-20, 03:41 PM,
#6
You welcome ! if you need any help just create a thread and pm me the thread link. i might be able to help :)

[Image: elitebanner.gif]
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Login Facebook acounts from different location davedeman 26 1,283 2017-03-29, 02:44 AM
Last Post: Austiner32
  Solved, pls. delete this thread dejan001 4 389 2017-03-20, 06:40 PM
Last Post: daroyalxflush
  Visual studio/basic miamor 6 241 2017-03-07, 10:37 PM
Last Post: miamor
  ONE-GREAT-TIP: Solved: Wooop why MY IG ACC Is Banned? pipskok 13 802 2017-02-26, 03:13 AM
Last Post: tradesol
  Visual Basic Question Daenerys 2 286 2017-02-24, 10:52 PM
Last Post: imonambot




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top