Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 11th November 2011
Braincode's Avatar
Braincode Braincode is offline
Ceriwis Addicted
 
Join Date: Nov 2011
Posts: 4,638
Rep Power: 20
Braincode mempunyai hidup yang Normal
Default [ask] Error pada visual C#

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:













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:















Spoiler for errror:
























kesalahannya di mana ya gan?? di database atau di coding nya ya gan???

Tolong bantuannya ya gan....



Thanks before gan,,,







Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 02:37 AM.


no new posts