•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 455,968 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,746 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 1091 | Replies: 2
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Rep Power: 0
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
•
•
Join Date: Nov 2007
Posts: 3
Reputation:
Rep Power: 0
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
jha_simran@yahoo.com
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Better way to make the columns align? (C++)
- help with mul div applications. (Assembly)
- program to simulate a soft drink machine. PLease help!!! (C++)
- adding up checkbox values (ASP.NET)
- Sorting from a file (C)
- help with getting soda machine program running (C++)
- Do while Loop to display a choosen month and the dates in it (ASP)
- water program using subprograms (Computer Science and Software Design)
- Calculate the amount of time in the linux process using perl script (Perl)
Other Threads in the VB.NET Forum
- Previous Thread: datagrid..
- Next Thread: Regex - always the same :)


Linear Mode