Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: this one is more understandable:D Pin
Professor Sharada Ulhas1-Apr-07 11:21
Professor Sharada Ulhas1-Apr-07 11:21 
Questionneed a simple solution Pin
yvzhn1-Apr-07 0:27
yvzhn1-Apr-07 0:27 
AnswerRe: need a simple solution Pin
Wayne Phipps1-Apr-07 0:54
Wayne Phipps1-Apr-07 0:54 
AnswerRe: need a simple solution Pin
Guffa1-Apr-07 4:40
Guffa1-Apr-07 4:40 
QuestionHow to make the "flying ball" to be in the front ? Pin
Saikek31-Mar-07 23:58
Saikek31-Mar-07 23:58 
AnswerRe: How to make the "flying ball" to be in the front ? Pin
CPallini1-Apr-07 0:41
mveCPallini1-Apr-07 0:41 
QuestionHow to access one form to another? [modified] Pin
Saikek31-Mar-07 23:52
Saikek31-Mar-07 23:52 
AnswerRe: How to access one form to another? Pin
Stefan Troschuetz1-Apr-07 0:52
Stefan Troschuetz1-Apr-07 0:52 
GeneralRe: How to access one form to another? Pin
Saikek1-Apr-07 4:36
Saikek1-Apr-07 4:36 
QuestionSir, can I have a doubt that If C# does not support Pointers then how C# is able to Support Runtime Polymorphism ? Pin
CodeVarma31-Mar-07 22:06
CodeVarma31-Mar-07 22:06 
AnswerRe: Sir, can I have a doubt that If C# does not support Pointers then how C# is able to Support Runtime Polymorphism ? Pin
Nader Elshehabi31-Mar-07 22:32
Nader Elshehabi31-Mar-07 22:32 
AnswerRe: Sir, can I have a doubt that If C# does not support Pointers then how C# is able to Support Runtime Polymorphism ? Pin
Muammar©31-Mar-07 22:47
Muammar©31-Mar-07 22:47 
Questionadding an image to the executable file Pin
Don Dang31-Mar-07 21:11
Don Dang31-Mar-07 21:11 
AnswerRe: adding an image to the executable file Pin
Stanciu Vlad31-Mar-07 21:38
Stanciu Vlad31-Mar-07 21:38 

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.