954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

display total amount

hi guys, How to display the total amount in a textBox when to supply those values I click on thems. A sample code would help a lot. Thank you
Ps: using Vb net (2005) in Window Form.

andy38
Newbie Poster
5 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 
hi guys, How to display the total amount in a textBox when to supply those values I click on thems. A sample code would help a lot. Thank you Ps: using Vb net (2005) in Window Form.


txtamt.Text = txtrate.Text
txttotal.Text = txtamt.Text
Try
txtvat.Text = txttotal.Text * 4 / 100
Catch ex As InvalidCastException
MessageBox.Show("Please enter an integer value")
End Try


Try
txtgross.Text = CInt(txttotal.Text) + CDbl(txtvat.Text)
Catch ex1 As InvalidCastException
MessageBox.Show("Please enter an integer value")
End Try

vivekvorani
Newbie Poster
1 post since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

Hi,
I have the same problem but I am using DataGridView and I want to display Total Amount by summing the data from one column(from DataGridView).

For Example:
In DataGriView there will be 3 columns, viz, Quantity, Rate and Amount.
Amount will be Quantity * Rate.
At the end I want to display Total Amount, i.e add all the rows in Amount column and display i footer.
If you know anything regarding this plz let me know.

Simran
[email]jha_simran@yahoo.com[/email]

Simran_Jha
Newbie Poster
3 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You