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.

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by Simran_Jha
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

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
jha_simran@yahoo.com

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.