Solved

How to Calculate UnBound Form Fields when Data Changes

Posted on 2006-07-11
3
313 Views
Last Modified: 2008-01-09
Hi,
I'm using VB 2005.
I have a database Application which displays an Invoice.  I'm only saving Certain Fields in the db, For this example assume it's a Subtotal amount and Freight amount.  
I have an unbound Text Field Call Total, which I have a procedure to calculate it's total.

I'm using all components for the database connection ie.  datasets, bindingsource, tableadapter, and navigator.

MY question simply is, where the best place to call my procedure to Calculate the Total whenever the database loads a new record.

I'm thinking on the Bindingsource.posistionChanged but I'm not sure.

Anyother pointers would be helpful.

0
Comment
Question by:shibumila
3 Comments
 
LVL 5

Accepted Solution

by:
nickhoggard earned 125 total points
ID: 17088049
Hi,

We've used BindingSource.CurrentChanged to do similar things in the past.
http://msdn2.microsoft.com/en-us/library/system.windows.forms.bindingsource.currentchanged.aspx

Cheers

Nick
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now