Braincode
11th November 2011, 01:32 PM
gan,
ane coba bikin pengolahan data barang dengan visual C#.net nih gan....
tapi pas run, ane pencet tombol next atau prev kok jadi error gini gan...
ini gan tampilannya :
Spoiler for desain:
Spoiler for gambar:
http://u.kaskus.us/2/hqay2ohs.jpg
Spoiler for codingnya:
Quote:
static void Main()
{
Application.Run(new Form1());
}
BindingManagerBase bmBarang;
private void Form1_Load (object sender, System.EventArgs e)
{
oleDbDataAdapter1.Fill(dataSet21);
bmBarang = this.BindingContext[dataSet21, "tbl_barang"];
}
private void menuItem2_Click(object sender, System.EventArgs e)
{
MessageBox.Show("Close This Program ?", "Close", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
this.Close();
}
private void menuItem4_Click(object sender, System.EventArgs e)
{
MessageBox.Show("COBA _ COBA ", "About Pengolahan Stock Barang", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void btnNext_Click(object sender, System.EventArgs e)
{
bmBarang.Position ++;
}
private void btnPrev_Click(object sender, System.EventArgs e)
{
bmBarang.Position --;
}
}
}
Spoiler for di run:
http://u.kaskus.us/2/r4fmtsue.jpg
Spoiler for errror:
http://u.kaskus.us/2/bdysfwuq.jpg
kesalahannya di mana ya gan?? di database atau di coding nya ya gan???
Tolong bantuannya ya gan....
Thanks before gan,,,
:handshake:
</div>
ane coba bikin pengolahan data barang dengan visual C#.net nih gan....
tapi pas run, ane pencet tombol next atau prev kok jadi error gini gan...
ini gan tampilannya :
Spoiler for desain:
Spoiler for gambar:
http://u.kaskus.us/2/hqay2ohs.jpg
Spoiler for codingnya:
Quote:
static void Main()
{
Application.Run(new Form1());
}
BindingManagerBase bmBarang;
private void Form1_Load (object sender, System.EventArgs e)
{
oleDbDataAdapter1.Fill(dataSet21);
bmBarang = this.BindingContext[dataSet21, "tbl_barang"];
}
private void menuItem2_Click(object sender, System.EventArgs e)
{
MessageBox.Show("Close This Program ?", "Close", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
this.Close();
}
private void menuItem4_Click(object sender, System.EventArgs e)
{
MessageBox.Show("COBA _ COBA ", "About Pengolahan Stock Barang", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void btnNext_Click(object sender, System.EventArgs e)
{
bmBarang.Position ++;
}
private void btnPrev_Click(object sender, System.EventArgs e)
{
bmBarang.Position --;
}
}
}
Spoiler for di run:
http://u.kaskus.us/2/r4fmtsue.jpg
Spoiler for errror:
http://u.kaskus.us/2/bdysfwuq.jpg
kesalahannya di mana ya gan?? di database atau di coding nya ya gan???
Tolong bantuannya ya gan....
Thanks before gan,,,
:handshake:
</div>