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 20th November 2011
Guesuper Guesuper is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 408
Rep Power: 14
Guesuper mempunyai hidup yang Normal
Default nanya listbox di C#??

gan ane mw nanya nh...ane lg mw bwt form transaction:




Spoiler for pic:
















- Saat Button Add ditekan, ProductID, Quantity, dan Total dimasukkan ke dalam listbox

- Total adalah hasil Quantity*Harga Product

- Apabila terdapat ProductID yang sama di-add, maka yang berubah di listbox adalah Quantity dan Totalnya.

- Apabila Quantity suatu product melebihi jumlah stok yang ada, maka akan muncul pesan bahwa stock tidak mencukupi



yg ane bingung gn gan gmana caranya ngeadd ProductID, Quantity, dan Total

kedalam listbox tersebut..

klau pk cara

listBox1.Items.Add("Id: "+comboBox2.Text+"Qty: "+numericUpDown1.Value+" Total: "+int.Parse(numericUpDown1.Value.ToString())* int.Parse(labelPrice.Text));



gmana caranya bwt ambil total masing barang2 bwt ngitung grandTotal





mohon pencerahannya 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 06:24 PM.


no new posts