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.

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.