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
ADVERTISEMENT
Feb 23, 2009
I'm using FedEx for my shipment and use the FedEx rate calculator to find the shipping cost. When I send the request and get back the response, I always find that there is no discount applied even if i send a quantity of 100. following questions so that i can get clear with how to work with the fedex webservice
1. If i want to send 2 quantities of a product. will i be constructing the request with a package count as 2 and repeating the same <requestedpackage> twice ?
[Code]...
View 2 Replies
Sep 28, 2011
when i hit add this item it adds, when click on update button it doesnt calculate and output the right calculation on the form.
[Code]...
View 1 Replies
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
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
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
Mar 24, 2010
I am trying to run the application created in the example at [URL] The code errors at the line dtsDataReader = dtsCommand.ExecuteReader(CommandBehavior.Default)
the error is A requested parameter does not exist in the package. I have checked everything that i can think of in the package Also when I try to run the package using the dtexecui utility I two errors "Error: SSIS Error Code DTS_E_PRODUCTLEVELTOLOW.
[Code]...
View 1 Replies
Feb 26, 2011
I am wanting to use an application to package all my files together into a setup package. I have tried InstallShield 2011, but when i click on Visual Basic .net wizard, it tells me I do not have Visual Studio.NET installed on my system. I am currently using VB2010 Express How can I fix this... or is there a better application available for packaging?
View 2 Replies
Apr 14, 2011
I created a simple VB application in Visual Studio 2010.My computer, which I am using to create the program, is Windows 7 Pro, and SQL Server 2008 is running on a Windows Server 2008 Enterprise, which I have full access to.
I want to click a button and have an SSIS package execute.I looked around on the Internet and found examples, but they do not seem to work for me.I try to add a reference, Microsoft.SqlServer.ManagedDTS.dll, as a few sites advise, but it is not listed when I go to PROJECT>ADD REFERENCE.
I also type:
Imports Microsoft.SqlServer.Dts.Runtime but all I get is a squiggly green line, which when hovered over states "Namespace or type specified in the Imports 'Microsoft.SqlServer .Dts.Runtime' doesn't contain any public member or cannot be found." Below is some code I copied from one of the websites and pasted in my button click event (the path is correct), but a get blue squiggly lines under "Package" and "DTSExecResult":
Dim pkgLocation
As String
Dim pkg As
New Package[code]....
What can I do to make the SSIS package run when I click the button on the Windows application a created?
View 8 Replies
Jun 14, 2009
the description of what the program is supposed to do is this: Create a program that assists in shipping widgets. When a customer orders widgets it determines how many boxes and how many bubble envelopes are required. Four widgets fit in a box. Any left over widgets are shipped in an envelope. Follow all best practices. Submit, Clear and Exit commands must be available. Be sure to have a menu and Access Keys.
So far I have a simple form layout with 3 labels and 3 textboxes. I Know to solve for boxes It has to divide Widgets by 4 But i do not no how to get the remainder into the separate envelope text box.
View 1 Replies
Oct 15, 2009
I'm using VB.NET in Visual Studio 2008. I'm programming an application to take processing orders and give the total price plus the shipping date. I would like something like : shipping_date = Current_Date + 3 days but I know this doesn't work. Any ideas?
View 1 Replies
May 25, 2012
Currently I am building a Connectship (Shipping Service Provided by UPS) project in VB 10. This is my first project in 10, in the past I have always used 2003. We decided to upgrade due to the connect ship API(.dll) wasn't compatible with 2003.
My current problem is as follows:I've built a program that uses ADOBD, some XML httprequests and a little bit of integration with there API they have. I also built it to use .net Framework 4.0. I can run the project just fine on the machine I built it on (XP SP3), but when I go to run it on the other machine, it acts like it runs but just doesn't do nothing. Basically just starts and stops.. The machine is not the same model as mine, but has all the updates (SP3) & the .net 4.0 framework on it. I've also tried installing the software package that comes with Connectship on the machine, this is how the .dll work but it still doesn't bring anything up so I don't think it's that messing it up.I was also wondering, to run VS 10 projects you should at least have SP3 correct or could you use SP1 also in XP?
View 6 Replies
May 3, 2011
I have no problem printing an Express shipping label.The ground shipping label doesn't want to put the tracking number in the label.Has anyone had a similar problem? [code]When it goes to print the label with all the data it doesn't put in the tracking number, instead it puts in this.[code]how to change this using some fedex webservice call.It does it automatically for express, just not for ground.
View 2 Replies
Nov 15, 2011
I am trying to make a simple program to display a shipping charge based upon a selected zip code. Where can I find sample code that I can use as a guide? I can create the GUI but can't figure our the code.
View 2 Replies
Nov 22, 2011
i am getting errors on last two event handlers. what did i do wrong?
Error - Handles clause requires a WithEvents variable defined in the containing type or one of its base types.D:Shipping ApplicationShipping ApplicationForm1.vb75136Shipping Application
Error - 'PrintDocument1' is not declared. It may be inaccessible due to its protection level.D:Shipping ApplicationShipping ApplicationForm1.vb1119Shipping Application
[code]....
View 2 Replies
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
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
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
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
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
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
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
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
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
Feb 27, 2012
I'm currently self-studying Visual Basic 2010 and I'm doing this piece where I have to convert pounds, shillings and pence into UK currency in one form, then in the next form, I have to select from two different types of import duty, add said import duty to the converted amount along with VAT before getting the final amount.
View 7 Replies
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
May 31, 2010
I have a assignment and I have got to do the total cost and put the total in a label, here is the code. Select Case pizza1
[Code]...
View 10 Replies
Apr 26, 2011
Create an application that calculates the total cost of a stay in a hotel in the North Carolina mountains. The application should accept the following in terms of input:Month of Check in Length of Stay (in Nights) Number of Persons Room Service Charges Phone Charges Other Charges If the check in occurs in November-March the rate is $89/night. April-August is $99/night and September-October is $109/night. $10/night should be added if more than 2 people are in the room. More than 4 people are not allowed in the room, and a traveler can only request 1 room. A 15% tax should be added to the room rate and 10% tax added to all room service and other charges. No tax will be added for phone charges.
The program should use a function to calculate the total charges for the visitor's stay and output it to a label. There should be buttons or menus to calculate the total, clear the form, and exit the application.At least one of the button should call a sub procedure which performs its function. I don't understand how to set this program up and I'm not sure what it means.
View 4 Replies
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
Aug 4, 2011
How to update the total cost after every item is selected and the user clicks enter...
Private Sub calcbutton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calcbutton.Click
Dim amount As Double
Double.TryParse(amounttextbox.Text, amount)
Dim total As Double
[Code] .....
View 1 Replies