Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
QuestionCould not access 'CDO.Message' object Pin
Saamir26-Sep-06 8:54
Saamir26-Sep-06 8:54 
QuestionFont Kerning Pin
jjvainav26-Sep-06 7:55
jjvainav26-Sep-06 7:55 
Questionconfuse about database Pin
Arif Liminto26-Sep-06 7:45
professionalArif Liminto26-Sep-06 7:45 
AnswerRe: confuse about database Pin
Guffa26-Sep-06 8:40
Guffa26-Sep-06 8:40 
AnswerRe: confuse about database Pin
Christian Graus26-Sep-06 12:27
protectorChristian Graus26-Sep-06 12:27 
GeneralRe: confuse about database Pin
Arif Liminto26-Sep-06 16:35
professionalArif Liminto26-Sep-06 16:35 
GeneralRe: confuse about database Pin
Christian Graus26-Sep-06 16:42
protectorChristian Graus26-Sep-06 16:42 
GeneralRe: confuse about database Pin
Arif Liminto26-Sep-06 16:59
professionalArif Liminto26-Sep-06 16:59 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
using System.Data.SqlClient;
namespace anggota
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void cmdexit_Click(object sender, EventArgs e)
{
MessageBox.Show(" BYE ");
Application.Exit();
}

private void cmdok_Click(object sender, EventArgs e)
{

bool matched = false;
bool matched2 = false;

Form f1 = new Form1();

for (int i = 0; i < gempanDataSet.Table1.Count; i++)
{
string cusername = gempanDataSet.Table1[i].username;
string cpassword = gempanDataSet.Table1[i].password;
matched = matched || (txtusername.Text == cusername);
matched2 = matched2 || (txtpassword.Text == cpassword);
if (matched && matched2) break;
}

if (matched)
{
MessageBox.Show("Username Correct");

}
else
{
MessageBox.Show("UNDETECTED username");
txtusername.Text = "";
}

if (matched2)
MessageBox.Show("Password Correct");
else
{
MessageBox.Show("Wrong Password");
txtpassword.Text = "";
}
executef2();

}

private void executef2()
{
Form2 f2 = null;
if (f2 == null)
{
f2 = new Form2();
f2.Show();
}
}
private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'gempanDataSet.Table1' table. You can move, or remove it, as needed.
this.table1TableAdapter1.Fill(this.gempanDataSet.Table1);


}
.................................. this it form 1 and below is form2 called profile

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Data.OleDb;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace anggota
{
public partial class Profile : Form
{
public Profile()
{
InitializeComponent();
}

private void txtfn_TextChanged(object sender, EventArgs e)
{
string cpassword = gempanDataSet.Table1[i].password;

}

private void Profile_Load(object sender, EventArgs e)
{
this.table1TableAdapter1.Fill(this.gempanDataSet.Table1);


}


}
}
can u help me solve thanks
GeneralRe: confuse about database Pin
Christian Graus26-Sep-06 17:07
protectorChristian Graus26-Sep-06 17:07 
QuestionRe: confuse about database Pin
Arif Liminto26-Sep-06 23:00
professionalArif Liminto26-Sep-06 23:00 
AnswerRe: confuse about database Pin
Christian Graus27-Sep-06 10:32
protectorChristian Graus27-Sep-06 10:32 
GeneralRe: confuse about database Pin
Arif Liminto1-Oct-06 23:01
professionalArif Liminto1-Oct-06 23:01 
GeneralRe: confuse about database Pin
Christian Graus1-Oct-06 23:14
protectorChristian Graus1-Oct-06 23:14 
Questionassembly Pin
waheed awan26-Sep-06 6:35
waheed awan26-Sep-06 6:35 
AnswerRe: assembly Pin
Nader Elshehabi26-Sep-06 6:43
Nader Elshehabi26-Sep-06 6:43 
GeneralRe: assembly Pin
waheed awan26-Sep-06 7:02
waheed awan26-Sep-06 7:02 
GeneralRe: assembly Pin
Judah Gabriel Himango26-Sep-06 15:44
sponsorJudah Gabriel Himango26-Sep-06 15:44 
AnswerRe: assembly Pin
Dan Neely26-Sep-06 7:08
Dan Neely26-Sep-06 7:08 
GeneralRe: assembly Pin
led mike26-Sep-06 7:15
led mike26-Sep-06 7:15 
GeneralRe: assembly Pin
LongRange.Shooter26-Sep-06 7:38
LongRange.Shooter26-Sep-06 7:38 
JokeRe: assembly Pin
Guffa26-Sep-06 7:58
Guffa26-Sep-06 7:58 
GeneralRe: assembly Pin
led mike26-Sep-06 8:21
led mike26-Sep-06 8:21 
GeneralRe: assembly Pin
J4amieC26-Sep-06 8:27
J4amieC26-Sep-06 8:27 
QuestionWhich Check Object Use Pin
ytubis26-Sep-06 6:21
ytubis26-Sep-06 6:21 
AnswerRe: Which Check Object Use Pin
Guffa26-Sep-06 8:53
Guffa26-Sep-06 8:53 

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.