VS 2008 Calculating Cost In Project?

Mar 7, 2010

My project, is something that could be used by an opticians (well in theory anyway)I have a customer being selected, eye measurements etc..Then I can enter in data (into textboxes):

TextBox1. Frames Stock: #12345
TextBox2. Material Used: Glass / Plastic
TextBox3. UV Filter: Yes / No

[code].....

View 6 Replies


ADVERTISEMENT

Calculating Shipping Cost For Package?

Jun 15, 2012

I am creating a code for a school project that calculates the shipping cost for a package. In this program the user enters the weight of the package ( in pounds ) and selects the destination of the package. The application with determine the cost of the shipping. The destination of the package can be the US continental, Hawaii or Alaska. If the package is going to Hawaii a 20% surcharge is added to the shipping cost. If the package is going to Alaska, a 26% surcharge is added the shipping cost.

This is my code thus far. When applying my weight in pounds and selecting the destination I still keep getting 0.0 for the total.
Public Class Form1
Private Sub textboxpounds_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles textboxpounds.TextChanged
End Sub
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)[Code] .....

Here is a screenshot of the GUI
Uploaded with ImageShack.us

View 11 Replies

Computing Cost - Cost Is Displayed Instead Of An Accurate Cost ?

Sep 17, 2010

I am running into trouble with some code I am doing for an assignment. The section within the apostrophes (If Then Else) is the section that I am having trouble with. When the user selects a seat type and then clicks the compute button, the wrong cost is displayed instead of an accurate cost.

Option Strict On
Public Class frmTickets

Private Sub btnComputeCost_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnComputeCost.Click
Dim intNumberOfTickets As Integer

[CODE]....................

View 6 Replies

Code Total Cost To Give Pound Sign With Total Cost At Moment When Total Comes Up

Jun 7, 2010

How do I code the total cost to give me a pound sign with the total cost at the moment when the total comes up for an example it gives me 3.6 when I need it to show £3.60 here is the code I have so far. [code]

View 2 Replies

VS 2008 Cost Calculator Errors

Apr 17, 2010

I was trying to make a calculator which takes the amont of copies you want to make and it tells you the cost. Then you type in the amount you want to enter and if its less a message box comes up saying "please enter more money". I've had a few problems

1. when i use formatcurrency the program crashes for no apparent reason

2. if i calculate cost without entering any copies then it crashes (ive tried putting a msgbox in but it crashes anyway)

3. if i get the msgbox to come up saying "Please enter more money" i had to remove the formatcorrency tag.

View 9 Replies

VS 2008 Calculate Price * Quantity = Cost?

Mar 3, 2010

I certainly hope I don't aggravate you with what is certainly a very simple code problem. I have never programmed before, but I do have a background in tech support, etc. I have an assignment to do and it's frustrating to wade through the information out there to find exactly what I need and nothing more.The assignment has 3 parts, one of which i've done. We are to do the same function in both javascript and VB. I was able to take a sample we did in class that caluclates a 10% discount and modify it so it calculates the total. Now, I have to modify that into a VB sln file. then write about the differences but that part will be cake.

I am working in Visual Studio 2008 - that program is new to me as well. When I created my login and it asked what VB I'm using, I did not know but under theu of VS, it says VB 2008.hat I attempted to do was to take the instructor's sample discount code and modify it for the new purpose, but an error was generated. This is the sample code I started with:

'Programmer: Dan Dougherty
'Date: Feb 2010
'

[code].....

View 14 Replies

VS 2008 Code To Work Out Cost With Different Prices Per Mile?

Mar 2, 2011

For our programming assignment to end the module (which im really struggling with) we have to write some code for use in a fictional taxi firm that charges �2 for the first mile, one price for miles 2-10, and another for all miles thereafter.

View 11 Replies

VB 2008 Code The Calculations For A Pocket PC Application That Calculates The Cost Of A Cell Phone Bill?

Feb 19, 2010

I'm having trouble figuring how to code the calculations for a Pocket PC application that calculates the cost of a cell phone bill. From a Pocket PC the user should enter the number of minutes used during the past month, in order to calculate the cost of the cell phone bill. The plan allows 300 minutes for $29.95 per month. For each minute over 300 the cost is $0.17 cents per minute. Tax and Fees are $4.85 a month.

1. User enters the number of minutes used during the past month.

2. Based on plan rate of 300 minutes for $29.95 and 17 cents for each minute over 300 calculate the cost of the bill including the fixed cost of $4.85.

3. The user must be able to initiate the calculation and display the individual charges and the total cost of the cell phone bill.

4. The user should be able to clear the number of cell phone minutes, the individual charges and the bill total

If negative number is enterd for the cell phone minutes, the user should be advised and asked for a valid entry If non numeric value entered for the cell phone minutes, or if left blank the user should be advised and asked for a valid entry.Application is deployed on the Pocket PC emulator built in VS 2008

Enter # of Minutes ________ (user enters)
Regular Minutes Charge ___ (29.95)

[code]....

View 1 Replies

VS 2008 - Timer - Project A References Project B So Can Open A Large Form In Project B

May 5, 2010

For reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.

View 2 Replies

VS 2008 - 2 DtpDateTimePicker - Not Calculating The Days

Jul 7, 2010

HTML

I got 2 dtpDateTimePicker1 and dtpDateTimePicker2 with txtStart.Text and txtend.text there showing the ("en-US") "MM . dd. yyyy" and i get the date difference , works fine but i want to use the German ("de-DE") When i chance the format to dtpDateTimePicker2.CustomFormat = "dd / MM / yyyy". its not calculating the days right

Here's the code i am using

Private Sub Vaction_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Creates a CultureInfo for German in Germany.

Dim ci As New CultureInfo("de-DE")
Dim dt As DateTime = DateTime.Now

[CODE]...

View 1 Replies

VS 2008 - Calculating Exact Date Of Day

Jan 21, 2010

Let's say I have two date values, date1 and date2. date1 stores the date today, and date2 is the result when I subtract 7 days from the date today. Is there any function in VB that makes me get the exact date of the day after I subtract 7 days from it? (ex: if today is 1/22, the output once I subtract 7 days from the date today would be 1/15)

View 2 Replies

Add Project Setup Project For Project For Visual Studio 2008?

Nov 15, 2010

i was developing Voice Chat Application in visual Basic .NET 2008 i try a lot methods to make installer for it :

1- i add Project Setup Project for my Project for Visual Studio 2008 Deploy & setup Type Projects and make it with output option and detect dependices

2- i try make it with Setup Factory 8.2.1

3- i try with MSI Factory 2.0

4 i try with Setup Factory 6.0

and after making installer copying it to my test virtual Machine or my friend lap and install it i get this error when try to run my application :

[Code]...

View 3 Replies

VS 2008 : Storing And Calculating Data Into Hashtable?

Dec 11, 2010

I am making a small tool that require some calculation. I am using hashtable to store values that I need to calculate. This tool continuously extract data on specific time interval(30 seconds) from webpage and add those data into the hashtable. Now the problem is I need to store the previous extraction data and when new extraction occurs, I need to deduct the previous data from new data.Here is the process I am currently following:

HTML
Dim MyTable as New Hashtable
MyTable.Add("Data1","200")
MyTable.Add("Data2","100")

[code]....

On first run it shows the result of Data3 = 100 which is currect. But on second run I need to redefine the value of Data2 = Data1 . So I need a result of Data3 = 0 on second run. This may not be the proper way to do this sort of operation. I have also tried using listbox, listview and even textfile to store the Data2 and recall that on second run.

View 2 Replies

VS 2008 Depreciation Loop - Calculate Straight-line Depreciation (cost * 1/n) N Being The Number Of Years To Depreciate

Jul 25, 2010

I have a program where I have to calculate straight-line depreciation (cost * 1/n) n being the number of years to depreciate, and Double-Declining depreciation (cost * 2/n) using user input for year of purchase, cost, and years of depreciation. The output needs to be put into 4 columns in a list box. Year, Value at beginning of year, Amount of depreciation during the year and Total depreciation to the end of the year.

The problem I am having is with my loop. It is not properly calculating. I'm sure I am doing something wrong that is simple, but I can't see it.

Here is my code; the problem areas are bold:

Public Class frmDepreciation

Dim Cost, Life, Year, Depreciation, BegValue, EndValue, Total, Counter As Double
Dim fmtStr As String = "{0,-10}{1,10}{2,17}{3,5}{4,-15}"
Dim fmtStr2 As String = "{0,-10}{1,10}{2,17}{3,15}"

[CODE]....

View 3 Replies

VS 2008 - Calculating Percentages Of People Passing Exam

Mar 18, 2011

I am trying to make a program that can calculate the percentage of people passing an exam. There are buttons for each letter grade, and working label counters for each time you press a button. Each button looks like this, except replace the letter with the appropriate one.

Private Sub btnA_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnA.Click
Static intA As Integer = 0
intA = intA + 1
lblA.Text = intA
lblPercent.Text = (lblA.Text + lblB.Text + lblC.Text + lblD.Text) / (lblA.Text + lblB.Text + lblC.Text + lblD.Text + lblF.Text)
End Sub

My problem is that the percent does not equal what I get when I put the exact same numbers into a calculator.

View 3 Replies

.NET Getting The Now Property Cost?

Jul 5, 2011

Useless question I guess, but accessing the property DateAndTime.Now computes each time the current system date and time, I suppose, is that right?

[Code]...

View 5 Replies

C# - The Cost Of Finalize In .Net?

Jun 15, 2010

(1) I've read a lot of questions about IDisposable where the answers recommend not using Finalize unless you really need to because of the process time involved.What I haven't seen is how much this cost is and how often it's paid. Every millisecond? second? hour, day etc.

(2) Also, it seems to me that Finalize is handy when its not always known if an object can be disposed. For instance, the framework font class. A control can't dispose of it because it doesn't know if the font is shared. The font is usually created at design time so the user won't know to dispose it, therefore finalize kicks in to finally get rid of it when there are no references left. Is that a correct impression?

View 5 Replies

Cost Of VB Or Web Design?

Mar 14, 2010

I need to know basic compiter skills,abbreviations ,what is aC++ and so oncan I get that here or would I be better off at a Technical school?

View 2 Replies

VS 2008 : Get Multiple Icons In A Project For Use With Shortcuts OUTSIDE The Project?

Nov 28, 2011

How do i get multiple icons in a project for use with shortcuts OUTSIDE the project..

View 7 Replies

VS 2008 Export A File From One Project Directly Into Another Project?

Jun 28, 2009

Is there a way that you can export a file from one project directly into another project?

For example, in one project i have a file called authInvalid.vb and i need to export it into another project?

View 4 Replies

Hospital Cost Form

Oct 29, 2009

below is the code I am working on. It is for a hospital cost form.

[code..]

I have a working version, but it doesn't meet the requirements completley.(I can post that if you need to see it) I am redoing this project and I am so stressed out. I may be overlooking something!

[code..]

View 14 Replies

Calculate Cost From Elapsed Time?

May 27, 2010

I am trying to calculate a total cost from an elapsed time. Dependant on how long the time is, this will calculate the total cost. It has to be 3 to every hour. The elapsed time is displayed in label6 in "hh:MM:ss" format and the total cost needs to be displayed in label8.

View 4 Replies

Is There A Cost To Using Managed (.NET) Components Inside COM+

Nov 4, 2010

Our company has relied heavily on COM+ components to centralize our DAL code and take advantage of the ability of COM+ to handle transactions and connection pooling. When we started using COM+, it was just with VB6 DLLs and always through late-binding so we could take advantage of DLLs being hosted on a different server.When we started moving to .NET in 2005, we ported our DAL functionality to .NET and continued to use COM+ and late binding to host the components. We would instantiate the objects like so: objBalLauncher = CreateObject("NETBLL.Launcher", "\" &strCOMPlusServer Name)I noticed that CreateObject seems to be for ActiveX COM components, so this has me thinking about two things:If COM+ was designed for unmanaged components, is there a cost to using COM+ with managed .NET DLLs?Is there a cost to using CreateObject() to late-bind to an assembly from within .NET code? Does this force your code to cross the managed/unmanaged barrier to communicate with the DLL? While I would be interested in hearing about alternatives to COM+ (which I'm sure are available by now), I'm most interested in hearing about what expense I incur from using managed DLLs within COM+.

View 1 Replies

Listbox Total Cost Per Item?

Mar 30, 2010

I'm have successfully did a shortcut "+" and "-" button to increase and decrease the qty ordered. But by doing so, i now have problem tabulating the cost for each item. Below is the print screen for my application. You will realised that the Lamb tandoori which is going for $3 cost only $21 after increasing the quantity ordered using the "+" button.In addition, i have created different list boxes for different food categories.Each category's food items is selling at the same price.

<img src "http://img521.imageshack.us/img521/6144/prob.png" />

View 1 Replies

Total Cost Button Won't Work?

Jan 15, 2012

When i run the program and click the cost button, it only returns a value of £0.00 for insurance cost and total cost.

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCost.Click
Dim Cost As Double

[Code]......

View 4 Replies

Convert .NET 2005 Project To C# 2008 Project?

Jun 16, 2009

Is there a tool to convert a VB.NET 2005 project to a C# 2008 project. I am trying to convert our project to VS 2008 and mostly port all the vb.NET code in some projects to C# 3.0/3.5.

View 6 Replies

VS 2008 How To Declare Things From BLL Project In UI Project

Apr 26, 2009

i'm doing a program, and i'm working with a guy (he's kinda like a teacher) and he's teaching me tiered coding, UI, BLL and DAL.i've been taught to have the UI in one project, and the BLL in another, but they're in the same solution. pretty much i don't know how to declare things from the BLL project in the UI project.

View 1 Replies

VS 2008 Project Does Not Appear In Recently Viewed Project?

Jul 9, 2011

I emptied the recently-viewed projects from the registry but now the project which I'm working on does not appear there even though I've opened it many times. How do I get the project to appear in recently-viewed projects?

View 5 Replies

VS 2008 - Code Error On Tax Calculating Program - User Enters The Item Name And Amount Of The Item Purchased

Feb 9, 2010

So i've to write this program whose purpose it this:

Purpose: The user enters the item name and amount of the item purchased. The program calculates the tax for the item and the final total, and then displays these values. Tax on all items will be 7.75%.

And so far i've this code but it's not working:

' Program: Cash Register
' Author: Nidhi Shah
' Date: February 2, 2010
' Purpose: The Cash Register Window application will
' computer the tax and the final cost of a
' purchased item.

Option Strict On

Public Class frmCashRegister
' Tax per item - used in multiple procedures
Const _cdecTaxPerItem As Decimal = 0.0775D

[CODE]...

View 6 Replies

Calculate The Total Cost Of A Parking Garage ?

Jun 21, 2010

I have a class assignment where i have to calculate the total cost of a parking garage from hours but i have to do it with a method function. So this might be a stupid question but can you read the user input values from a textbox in the function itself or do they have to be read in and recalled from the Private Sub Button1_Click section?

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved