Code.GeekInterview.com
 
Code Samples VB.NET
 

Inventory


Code ResourceAuthor: alaa_eng  

Difficulty Level: Beginner

Published: 19th Jan 2011   Read: 1890 times  

Filed in: VB.NET
Add Comment


 

 

Sponsored Links


 

 

Enter the number of carton per shipment and the item per carton to get the total numberof item result = carton per shipment * item per carton display the final answer

 


Sample Code
  1. Public Class Inventory
  2.  
  3.     Private Sub Inventory_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.  
  5.     End Sub
  6.  
  7.    Private Sub totalresult_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles totalresult.Click
  8.       'dispaly input entered into txtCartons in lbltotalresult
  9.  
  10.  
  11.       Dim intCartons As Integer
  12.       Dim intitem As Integer
  13.       Dim intresult As Integer
  14.       intCartons = Val(txtCartons.Text)
  15.       intitem = Val(txtitem.Text)
  16.  
  17.       intresult = intCartons * intitem
  18.  
  19.  
  20.       lbltotalresult.Text = intresult
  21.  
  22.      
  23.       'lbltotalresult.Text = Val(txtCartons.Text) * Val(txtitem.Text)
  24.  
  25.  
  26.    End Sub 'end butten
  27.  
  28.    
  29.    Private Sub txtCartons_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtCartons.TextChanged
  30.       lbltotalresult.Text = "" ' clear output lable
  31.    End Sub
  32.  
  33.    Private Sub txtitem_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtitem.TextChanged
  34.       lbltotalresult.Text = "" ' clear output lable
  35.    End Sub
  36. End Class
Copyright GeekInterview.com


Next Article: Find MAC Address


 

Latest Code Samples

 

Popular Code Samples

 

Related Code Samples

 

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    



Popular Coders

# Coder NameHits
1. Lokesh9477
2. jsubha20095843
3. supersubra5831
4. Lokesh M4627
5. sureshrndsoft3661
6. Biswabed Dash2393
7. alaa_eng1891

Active Coders

# Coder NameCodes
1. supersubra1
2. Biswabed Dash1
3. Lokesh1
4. Lokesh M1
5. jsubha20091
6. sureshrndsoft1
7. alaa_eng1

Refined Tags