Click here to Skip to main content
15,891,726 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using Thread.Sleep() in a Timer tick event Pin
Nagy Vilmos29-Jul-09 4:54
professionalNagy Vilmos29-Jul-09 4:54 
AnswerRe: Using Thread.Sleep() in a Timer tick event Pin
PIEBALDconsult29-Jul-09 4:55
mvePIEBALDconsult29-Jul-09 4:55 
AnswerRe: Using Thread.Sleep() in a Timer tick event Pin
Abhijit Jana29-Jul-09 5:27
professionalAbhijit Jana29-Jul-09 5:27 
GeneralRe: Using Thread.Sleep() in a Timer tick event Pin
ThomasManz29-Jul-09 10:19
ThomasManz29-Jul-09 10:19 
AnswerRe: Using Thread.Sleep() in a Timer tick event Pin
Abhijit Jana29-Jul-09 11:03
professionalAbhijit Jana29-Jul-09 11:03 
AnswerRe: Using Thread.Sleep() in a Timer tick event Pin
Lutosław29-Jul-09 10:12
Lutosław29-Jul-09 10:12 
Questionexisting object.custom property Pin
_Q12_29-Jul-09 4:19
_Q12_29-Jul-09 4:19 
AnswerRe: existing object.custom property Pin
OriginalGriff29-Jul-09 4:30
mveOriginalGriff29-Jul-09 4:30 
AnswerRe: existing object.custom property Pin
_Q12_29-Jul-09 6:32
_Q12_29-Jul-09 6:32 
QuestionRouge Text String in Socket Programing Pin
User 621557929-Jul-09 4:04
User 621557929-Jul-09 4:04 
AnswerRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 4:59
professionalNagy Vilmos29-Jul-09 4:59 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557929-Jul-09 5:09
User 621557929-Jul-09 5:09 
GeneralRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 5:12
professionalNagy Vilmos29-Jul-09 5:12 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557929-Jul-09 6:21
User 621557929-Jul-09 6:21 
GeneralRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 6:48
professionalNagy Vilmos29-Jul-09 6:48 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557929-Jul-09 6:55
User 621557929-Jul-09 6:55 
GeneralRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 7:03
professionalNagy Vilmos29-Jul-09 7:03 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557929-Jul-09 7:11
User 621557929-Jul-09 7:11 
GeneralRe: Rouge Text String in Socket Programing Pin
Nagy Vilmos29-Jul-09 22:19
professionalNagy Vilmos29-Jul-09 22:19 
GeneralRe: Rouge Text String in Socket Programing Pin
User 621557930-Jul-09 1:54
User 621557930-Jul-09 1:54 
GeneralLogin form connectivity with SQL server 2005 with ADO.NET Pin
Harpreet Singh Matharoo29-Jul-09 4:03
Harpreet Singh Matharoo29-Jul-09 4:03 
Hi Friends,
I'm Harry actually i'm fresher student in software engeenring line and i'm doing aa activity . I created a login form in Microsoft Visual Studio 2005 and I'm trying to store user id and password on back end. And I'm using this code for this purpose but every time it shows an error and error is when every time i fill the user id and pasword and i just click on login button and message box appear with meesage user id and password is wrong. plz help me in thsi activity. down here the code plz check it out the error .

private void button1_Click(object sender, EventArgs e)
{


SqlConnection con = new SqlConnection("Data Source=DEVILINSIDE\\SQLEXPRESS;Initial Catalog=master;Integrated Security=True");
SqlDataAdapter da = new SqlDataAdapter("select * from loginform", con);
con.Open();
SqlCommandBuilder cmb = new SqlCommandBuilder(da);
DataSet ds = new DataSet("dataset");
da.Fill(ds, "loginform");
DataTable dt = new DataTable();
dt = ds.Tables["loginform"];

foreach (DataRow dr in ds.Tables["loginform"].Rows)
{
if (textBox1.Text == dr[0].ToString() && textBox2.Text == dr[1].ToString())
{

welcome w = new welcome();
w.Show();

}
else
{
MessageBox.Show("Invalid User Name or Password", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
textBox2.Text = "";
}

}
GeneralRe: Login form connectivity with SQL server 2005 with ADO.NET Pin
Vimalsoft(Pty) Ltd29-Jul-09 4:50
professionalVimalsoft(Pty) Ltd29-Jul-09 4:50 
QuestionDatagridview DateTimePicker Problem. Pin
priyamtheone29-Jul-09 3:31
priyamtheone29-Jul-09 3:31 
QuestionFind Scroll bar moved either left/right? Pin
spalanivel29-Jul-09 3:15
spalanivel29-Jul-09 3:15 
AnswerRe: Find Scroll bar moved either left/right? Pin
Nagy Vilmos29-Jul-09 3:33
professionalNagy Vilmos29-Jul-09 3:33 

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.