Click here to Skip to main content
15,506,757 members
Home / Discussions / C#
   

C#

 
QuestionPassword CAPS not Checking in my code Pin
N Mohamed rafi22-Mar-22 22:08
N Mohamed rafi22-Mar-22 22:08 
AnswerRe: Password CAPS not Checking in my code Pin
OriginalGriff22-Mar-22 22:10
mveOriginalGriff22-Mar-22 22:10 
GeneralRe: Password CAPS not Checking in my code Pin
N Mohamed rafi23-Mar-22 1:56
N Mohamed rafi23-Mar-22 1:56 
GeneralRe: Password CAPS not Checking in my code Pin
OriginalGriff23-Mar-22 2:18
mveOriginalGriff23-Mar-22 2:18 
GeneralRe: Password CAPS not Checking in my code Pin
Dave Kreskowiak23-Mar-22 3:46
mveDave Kreskowiak23-Mar-22 3:46 
GeneralRe: Password CAPS not Checking in my code Pin
N Mohamed rafi25-Mar-22 23:56
N Mohamed rafi25-Mar-22 23:56 
GeneralRe: Password CAPS not Checking in my code Pin
Dave Kreskowiak26-Mar-22 10:53
mveDave Kreskowiak26-Mar-22 10:53 
QuestionMysql Query Error Pin
N Mohamed rafi22-Mar-22 2:53
N Mohamed rafi22-Mar-22 2:53 
I have stored userid and password in mysql database, this query is showing login successfully for not stored data, so please correct it

string query = "select * from login where userid=@userid and password=@password";
                 using (MySqlCommand cmd = new MySqlCommand(query))
                {
                   cmd.Parameters.AddWithValue("@userid", id);
                   cmd.Parameters.AddWithValue("@password", password);
                    cmd.Connection = cnn;
                    cnn.Open();
                    cmd.ExecuteNonQuery();
                    DialogResult dr = MessageBox.Show("Are you sure to Login now?", "Confirmation Message", MessageBoxButtons.YesNo);
                    if (dr == DialogResult.Yes)
                    {
                        MessageBox.Show("Login Successfully");
                        cnn.Close();
                        this.Hide();
                        Form2 f2 = new Form2();
                        f2.ShowDialog();

AnswerRe: Mysql Query Error Pin
Dave Kreskowiak22-Mar-22 3:02
mveDave Kreskowiak22-Mar-22 3:02 
AnswerRe: Mysql Query Error Pin
OriginalGriff22-Mar-22 3:40
mveOriginalGriff22-Mar-22 3:40 
Questionhow sort datgridview or listview like windows explorer Pin
Le@rner21-Mar-22 21:01
Le@rner21-Mar-22 21:01 
AnswerRe: how sort datgridview or listview like windows explorer Pin
OriginalGriff21-Mar-22 22:12
mveOriginalGriff21-Mar-22 22:12 
GeneralRe: how sort datgridview or listview like windows explorer Pin
Le@rner22-Mar-22 2:20
Le@rner22-Mar-22 2:20 
GeneralRe: how sort datgridview or listview like windows explorer Pin
Dave Kreskowiak22-Mar-22 2:50
mveDave Kreskowiak22-Mar-22 2:50 
AnswerRe: how sort datgridview or listview like windows explorer Pin
Richard Deeming21-Mar-22 23:32
mveRichard Deeming21-Mar-22 23:32 
GeneralRe: how sort datgridview or listview like windows explorer Pin
Le@rner22-Mar-22 3:00
Le@rner22-Mar-22 3:00 
GeneralRe: how sort datgridview or listview like windows explorer Pin
Le@rner28-Mar-22 2:36
Le@rner28-Mar-22 2:36 
GeneralRe: how sort datgridview or listview like windows explorer Pin
Richard Deeming28-Mar-22 22:45
mveRichard Deeming28-Mar-22 22:45 
AnswerRe: how sort datgridview or listview like windows explorer Pin
RobertSF26-Mar-22 14:32
professionalRobertSF26-Mar-22 14:32 
GeneralC# to Mysql Login code Error Pin
N Mohamed rafi21-Mar-22 17:34
N Mohamed rafi21-Mar-22 17:34 
SuggestionRe: C# to Mysql Login code Error Pin
Richard Deeming21-Mar-22 23:26
mveRichard Deeming21-Mar-22 23:26 
AnswerRe: C# to Mysql Login code Error Pin
Richard Deeming21-Mar-22 23:28
mveRichard Deeming21-Mar-22 23:28 
GeneralRe: C# to Mysql Login code Error Pin
N Mohamed rafi21-Mar-22 23:33
N Mohamed rafi21-Mar-22 23:33 
GeneralRe: C# to Mysql Login code Error Pin
Richard Deeming21-Mar-22 23:38
mveRichard Deeming21-Mar-22 23:38 
GeneralRe: C# to Mysql Login code Error Pin
N Mohamed rafi21-Mar-22 23:43
N Mohamed rafi21-Mar-22 23:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.