Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ghosted icon Pin
Insincere Dave2-Apr-07 5:12
Insincere Dave2-Apr-07 5:12 
QuestionAdjusting size in a picturebox Pin
missrej1-Apr-07 10:04
missrej1-Apr-07 10:04 
AnswerRe: Adjusting size in a picturebox Pin
Wayne Phipps1-Apr-07 10:19
Wayne Phipps1-Apr-07 10:19 
GeneralRe: Adjusting size in a picturebox Pin
missrej1-Apr-07 16:52
missrej1-Apr-07 16:52 
QuestionMeasuring total system memory Pin
chatnoir1-Apr-07 9:02
chatnoir1-Apr-07 9:02 
AnswerRe: Measuring total system memory Pin
Wayne Phipps1-Apr-07 10:01
Wayne Phipps1-Apr-07 10:01 
QuestionTo get shortcuts(icons) of documents stored in SQL server [modified] Pin
missrej1-Apr-07 6:30
missrej1-Apr-07 6:30 
AnswerRe: To get shortcuts(icons) of documents stored in SQL server Pin
joon vh.1-Apr-07 21:41
joon vh.1-Apr-07 21:41 
QuestionQuestion on deleting a file once the user closes the application? Pin
Khoramdin1-Apr-07 5:23
Khoramdin1-Apr-07 5:23 
AnswerRe: Question on deleting a file once the user closes the application? Pin
Leslie Sanford1-Apr-07 5:50
Leslie Sanford1-Apr-07 5:50 
Questionfast processing techniques required to process text files greater than 35 GB! Pin
Adeel Chaudhry1-Apr-07 2:38
Adeel Chaudhry1-Apr-07 2:38 
AnswerRe: fast processing techniques required to process text files greater than 35 GB! Pin
DavidNohejl1-Apr-07 4:21
DavidNohejl1-Apr-07 4:21 
GeneralRe: fast processing techniques required to process text files greater than 35 GB! Pin
Adeel Chaudhry1-Apr-07 5:40
Adeel Chaudhry1-Apr-07 5:40 
GeneralRe: fast processing techniques required to process text files greater than 35 GB! Pin
CPallini1-Apr-07 5:54
mveCPallini1-Apr-07 5:54 
AnswerRe: fast processing techniques required to process text files greater than 35 GB! Pin
Guffa1-Apr-07 4:25
Guffa1-Apr-07 4:25 
GeneralRe: fast processing techniques required to process text files greater than 35 GB! Pin
Adeel Chaudhry1-Apr-07 5:43
Adeel Chaudhry1-Apr-07 5:43 
GeneralRe: fast processing techniques required to process text files greater than 35 GB! Pin
Guffa1-Apr-07 20:59
Guffa1-Apr-07 20:59 
GeneralRe: fast processing techniques required to process text files greater than 35 GB! Pin
mabo422-Apr-07 1:26
mabo422-Apr-07 1:26 
GeneralRe: fast processing techniques required to process text files greater than 35 GB! Pin
mabo422-Apr-07 1:38
mabo422-Apr-07 1:38 
QuestionStarup object Pin
Tauseef A1-Apr-07 2:18
Tauseef A1-Apr-07 2:18 
AnswerRe: Starup object Pin
Mike Hankey1-Apr-07 2:46
mveMike Hankey1-Apr-07 2:46 
QuestionSimple Password Form compare using database.Tq Pin
krajah101-Apr-07 1:43
krajah101-Apr-07 1:43 
Hello friends need help here..
Before this I have learn to create password validating form.Which is user have to key in password to enter another form. The password is default that have set in the coding.Now I need help how to connect to MY Sql database from C# from and compare the password that already I set in MY Sql database,table name Security and Field name password and the password is "ABCD".I dont know how to use SQL server 2005.
Below are the coding for the first form that validate to enter to form2.
//////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace cubaan1
{
public partial class Form1 : Form
{
Form2 form1 = new Form2();
public Form1()
{


InitializeComponent();
}

private void textBox1_TextChanged(object sender, EventArgs e)
{
textBox1.PasswordChar = '*'; //Masking Char

textBox1.MaxLength = 14;//Max Length is 14
}

private void button1_Click(object sender, EventArgs e)
{
string strDefaultPassword = "security"; //Keep the default password
string strEnteredPassword = textBox1.Text;
if (strEnteredPassword == strDefaultPassword)
{
this.Hide();
form1.ShowDialog();
}
else
{
MessageBox.Show("Wrong password entered");
this.Close();
}
}
}
}
//////////////////////////////////////////////////////////
How to change this to connect to MY Sql Database and compare the password from the database.

Tq in advance......

Questionthis one is more understandable:D Pin
yvzhn1-Apr-07 0:36
yvzhn1-Apr-07 0:36 
AnswerRe: this one is more understandable:D Pin
Wayne Phipps1-Apr-07 0:49
Wayne Phipps1-Apr-07 0:49 
AnswerRe: this one is more understandable:D Pin
Colin Angus Mackay1-Apr-07 1:07
Colin Angus Mackay1-Apr-07 1:07 

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.