Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Visual Basic, text box with number, subtract from another text box with number display results a text?
Okay, I am trying to make a program, for simplicity sake:
Meter 1 {begin reading} {end reading} (display end "minus" begin) calculate button
I know this should be simple, i'm just starting out with VB. that is the layout of my GUI i've created.
Write a VB.NET Windows application to aid in the calculation of reconnect charges for delinquent electric customers. When customers fail to pay their electric bill, the utility frequently disconnects service and requires full payment up to the current meter reading before reconnection. Use the following application interface design to construct a program to aid in this problem. Intended uses of the application include customer service representatives who speak with field service workers who are onsite and to collect bills and reconnect the customer's electric service and field service workers using the application on a laptop.
Screenshot
Users enter delinquent prior balance in the Prior Balance field.
A meter charge of $25.00 is assessed for each disconnected meter. The number of meters is entered in the “Meter Count” field.
Electric usage, measured in KWH is billed at 8.2 cents per KWH. The form allows for quick calculation of electirc usage for up to three electric meters. The us
2 Answers
- GardnerLv 710 years agoFavorite Answer
You can use a few methods. If the meter reading boxes are whole numbers then you can use Cint(textbox.text)
You can alternatively use the Val(Textbox.text) command to extract a number.
Source(s): VB.NET Programmer - 10 years ago
explain yourself better, and copy your code over here, i'll help you better that way :)