osfoltkenzy 0 Newbie Poster

this stuff is giving me build error, where am i supposed to slap it ( what platform in visual studio) pls

Hasan_3 0 Newbie Poster

one thing i am not clear. let say everything is ok and a user successfull to login. From above code we get it in this part.

if (string.Compare(dbPassword, appPassword) == 0)
{
//Logged in
}

my question is what we do with the login form unload and load the main form?

if (string.Compare(dbPassword, appPassword) == 0)
{
//Logged in
this.hide();
mainForm.show();
}

how we manage the login form and mainform and there exit sequence?

kplcjl 17 Junior Poster

FYI, when talking about secure logins, providing any information on the validity of either the userID or the password is a complete no-no. Instead of just passing the userID, pass both the userID and the encrypted password to the connection making sure both are part of the where clause.
It's beyond the scope of this routine, but it is a good practice to just allow the general user execute access to stored procedures, so this should call a procedure that returns the logon information information you want to retrieve.

Bodmingaol 0 Newbie Poster

I like this function. Thanks

hit's dhameliya 0 Newbie Poster

first program is not run because it has no main method ??
pls give solution

pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster

It's not a fully functional program, it's part of a form's code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.