User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Nov 2007
Posts: 3
Reputation: andy38 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
andy38 andy38 is offline Offline
Newbie Poster

display total amount

  #1  
Nov 22nd, 2007
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Posts: 1
Reputation: vivekvorani is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vivekvorani vivekvorani is offline Offline
Newbie Poster

Re: display total amount

  #2  
Nov 24th, 2007
Originally Posted by andy38 View Post
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
Reply With Quote  
Join Date: Nov 2007
Posts: 3
Reputation: Simran_Jha is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Simran_Jha Simran_Jha is offline Offline
Newbie Poster

Re: display total amount

  #3  
Nov 29th, 2007
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 9:10 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC