VS 2010 : Calculating Circumference And Radius?

Apr 20, 2011

im creating 2 programs for school but both have errors. One program will calculate circumference and area when you enter a radius. Heres the

Public Class Form1
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If TextBox1.Text <= 0 Then
TextBox2.AppendText("Enter a valid number.")

[code]....

View 4 Replies


ADVERTISEMENT

Calculate Latitude And Longitude Along A Circumference Of A Known Circle With Known Distance

Jan 24, 2011

calculate the gps coordinates of points of a specific distance, namely 22 feet apart, on the circumference of a circle. I know the beginning gps coordinates and the radius. I am pretty sure the haversine, or the speherical law of cosines has the answer, but its been a long time since I have used any trig formulas and I cant figure it out. I am using decimal degrees and am programing in this vb.net.

View 3 Replies

VS 2010 Calculating Perimeter Of A Triangle?

Feb 24, 2011

Calculating Perimeter of a triangle

View 2 Replies

VS 2010 Downloader, Calculating Speed?

Dec 10, 2011

Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click
Timer1.Start()

[code].....

View 24 Replies

Border-Radius In FileUpload Control

Jan 11, 2012

I have file Upload Control on my web Page,

i want to apply border radius for input,

i tried following:

[code..]

but it doesn't work,how can i apply border-radius.

View 1 Replies

Make Border Radius Webbrowser?

May 22, 2011

so I have a webbrowser control in my main form but it seems I can't render all the css features correctlyI have got IE9 installed, and as far as I know the control uses that to render the page, however some css attributes like border-radius is not working

View 2 Replies

Timer Constant Radius Turn

Jan 20, 2010

I am designing a program (VB2005 Express) that will give a predicted compass heading for a boat following a constant radius turn.Eg. A boat doing 15knots, heading 090deg alters to 180deg on a constant radius of 0.5 The distance covered will be 0.79, the turn will take 3.14 min and have a rate of turn of 28.6 deg /min.My program will have an initial and final heading input, boat speed and required radius of turn.When the boat is at the alteration point, hit the Execute button and a text box will change over time to display what the boat heading should be.That way if the navigator can follow the predicted Text box heading on the boat, the boat should stay on the radius.This project is going to be a good learning experience for me. I am not sure on how to go about it at this stage. A couple of timer posts I have looked at refer to multi threading. I don't know what that means. Because the value of the text box is changing while the timer is counting, does this require multi threading? Do I need to be looking at that sort of thing for this project?

View 13 Replies

VS 2010 - Calculating Type Of Combinations Of Character

Oct 4, 2010

I have a string that can be anywhere from 1 to 8 digits long of which each character is a hex number (0-9, A-F) and each character isn't necessarily unique. I need to calculate all possible combinations. Is there a specific term for this type of calculation or combination? I need to learn how to write a program to "calculate" all the possible combinations.

View 2 Replies

VS 2010 : Calculating The Price Of A Meal+taxes?

Sep 19, 2011

I need to create a simple program that will calculate de price of the meal+the taxes aswell as the tip.

The prov taxe= 8,5%
the fed taxe = 8%
and the tip is 15%

I need to use const for this one.heres what i came up with:

Private Sub partie4_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles partie4.Click
Dim repas As String
Dim sous_total As String

[code]....

The user has to type the price of the meal and then it should calculate the price but for some reason instead of *8,5% it will do x*8.5.

View 4 Replies

VS 2010 Calculating Staff Holiday Days

Dec 14, 2010

Currently I was making a program that will store staff holidays, with a form they can fill out when they take some.The form has Holiday Start and Holiday Finish as 2 Date Fields.Also 7 Check boxes(Monday to Sunday) so they can tick which days they would normally work.The problem i have is then we need to know how many days are being taken, for example.[code]But they have ticked they only work Tuesdays and Thursdays this means they would have only took 2 days holiday.How could i calculate this say if an employee took 1 month?

View 2 Replies

Game Programming :: Set Circle Radius As A Variable?

Apr 26, 2008

Is it possible to assign a variable for the radius of circle? I tried it and it doesn't seem to work. Does anyone know a workaround to this. I'm trying to create concentric circles using a changing radius variable in a loop, just so you know the context.

View 3 Replies

Make A Picturebox Move Towards Square That Is Red In A 100 By 100 Radius?

Jun 3, 2010

I have a picturebox. Lets say i have 5 ,64 by 64 , squares that are evenly spaced out by 100 by 100. Is it possible to make it were if a pitcturebox finds a red square near it, it will move twords it and then if it finds another square that is red it will move twards that one, and so on ect , ect , ect.

View 2 Replies

Visual Basic 2010 - Calculating The Difference Between Times?

Oct 19, 2011

I am trying to calculate the difference between 2 times.

So far I have 4 labels.

Label1 = Current date and time.
Label2 = Contains the exact time that the application was last closed.
Label3 = Contains the exact time that the application was opened.

Label4 = I want this label to say how much time in seconds had elapsed between the application last being closed and the application being opened again, in other words the difference in seconds between label 2 and label 3.

Below is what I have done so far, but despite repeated efforts I can't seem to find a way of getting the time difference to show in label 4?

[Code]....

View 5 Replies

VS 2010 (One App): 24-bit Word - Creating UDP Datagram - Calculating Checksum

Sep 22, 2011

I'm trying to create an app that controls a BSS BLU-80 (DSP) through Ethernet. I've written a few basic programs in the past, but nothing that used sockets or even required calculating a checksum. One of the values I need to send has to be 24 bits. This one really has me scratching my head. From the manufacturer's docs:

[Code]...

View 5 Replies

Draw Arc From Start Point, End Point And Radius?

Jan 17, 2009

I want to make a drawing application which needs a few drawing functions I cant handle myself as im not very mathematicly inclined The first on the list of functions is to create an arc from a start point, end point and radius. The method signature is as followes.

Function CreateArc(byval StartPoint as PointF, EndPoint as PointF, Raduis as single) As PointF()
'Code to create an array of points...

[Code]....

View 1 Replies

Calculating Bit Masks In VB?

Jan 7, 2009

I am trying to figure out how bitmasks are calculated in vb... I have the following constants and their bit values:

[Code]...

View 4 Replies

Calculating Commission In VB?

Apr 1, 2011

I'm really new to VB. This is only the 3 app I've created, and I'm stuck.I need to code an app that displays total commission earned on sales at different levels. The commission percentage goes up as sales go up.

Should I write a If/else/else/else/else/then statement or something else?There are 5 different commission levels in the problem. I have my interface designed, but obviously that's the easy part.

View 1 Replies

Calculating GCF And Reducing

Jan 27, 2011

I understand the basics of using VB.NET, what I don't understand is what I need to tell the computer to do. I'm supposed to create a subprogram to calculate the greatest common factor and another subprogram to reduce the fraction from the answers retrieved from the first subprogram. My teacher said something about using Mod to calculate it, and also attempted and failed to explain ByVal and ByRef parameters. I don't even know where to begin other than the parameters I have for each, and even those have a high chance of being completely wrong.[code]

View 1 Replies

Calculating Interest In .net?

Jul 27, 2009

I,ve completed a program for a debt solution agency that calculates the amount a client can afford to repay after all his deductions and general life costs, my proplam however is at the end when i have to display all the creditors on a proposal data grid that shows the amount and total months to repay all creditors and calculates the amounts as one of the creditors debt is paid up and that monthly installment is devided between the remaining creditors.

View 1 Replies

Calculating Next Working Day?

May 5, 2009

i have the code below and i want to calculate the next working day adding five days from today and it must not add weekends as a working day. this code currently adds weekends as well and i need it tofclaculate excluding weekends.

[Code]...

View 2 Replies

Calculating Using Only One Button?

Aug 31, 2010

I have a project that I'm working on and we are basically creating a calculator to calculate area of a rectangle and area of a circle using one button. How do I code to allow the button to calculate both the area of the rectangle and the

View 16 Replies

Code Is Not Calculating Right

Sep 21, 2010

Can someone help me figure out why my calculations do not come out right? I have many notes so it is easy to understand. The assignment is: "Create a windows app for the rental of a vehicle. User selects number of rental days up to 7 days. The user also 'can select one of three types of vehicles. Customer has a choice of filling the gas tank themselves,'or prepaying for a full tank of gas ($52). If vehicle will be driven by more than one driver, a multiple'driver cost of $22 per day will be added to the cost." [code]

View 4 Replies

For Loop Is Not Calculating?

Dec 12, 2008

The interest is compounded monthly and these are sample inputs and output.

Input:
Monthly Deposit: 300
Annual rate: .05

[code].....

View 3 Replies

Value Is Appending Rather Than Calculating?

Apr 6, 2010

I am trying to use and display calculations from various text fields, however it is appending the values. I think it has to do with it being a String Variable and not a Value.. here is the code

Private Sub btnTransact_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTransact.Click
If rb1Deduct.Checked = True Then txtp1Amt.Text = (txtp1Amt.Text - txtTransact.Text)

[code].....

View 5 Replies

.net - Calculating Yaw / Pitch / Roll

Mar 17, 2011

I have three GPS antennae on a boat. They are in fixed xyz positions relative to each other. For example:

[Code]....

View 2 Replies

Calculating A Bill For A Dental Lab?

Feb 20, 2010

I am working on this program that is suppose to display the patient's bill after they have selected a service at a dental lab. the problem I am having is that if the patient name is empty it gives me a message but it still shows the bill. Also I am having a problem with the code that will calculate the bill if a a patient choose more than one service. Here is my code below

P
ublic Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click

[Code].....

View 4 Replies

Calculating A DataGridView Column?

Apr 24, 2012

I have probably not a unique issue but I can't seem to figure it out. I need to calculate a datagridview column after it a new row has been added to it. I am adding the row to the datasource and the row is added to the datagridview but how can I automate the two thing together by a single button click. IE: add the row (with a value)to the gridview and then calculate. I have this code but is doesn't work.

Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
Dim OwnerID As Integer

[code].....

View 3 Replies

Calculating Age From Two DateTimePicker Tools?

Dec 24, 2011

I just want to calculate age from two datetimepicker tools. The label should display - "XX years XX months xx days old". I have succeeded in calculating with respect to time, but failing w.r.t date.

View 3 Replies

Calculating An Average From Input?

Feb 8, 2009

here is my problem. i have to enter two grades, each grade should be an integer between 0 and 100 inclusive. Calculate the average of the two grades. If the average is greater than or equal to 90, display "Grade is an A!". It goes down the line for "if average is _______, display " ______is a/n __!" I get the last part and I know how to figure an average...but i am not sure how to type it in code. He did an elseif example, but it wasn't with 2 numbers and didn't have to average anything. So I don't know how to write that code....is there anywhere to look to find it? Here is what I have so far.............

Module Module1
Sub Main()
Dim grade, sum, average As Double

[code].....

View 14 Replies

Calculating Average And Grade?

Jun 21, 2010

Using VB.NET write a program that can calculate the grade of a student based on his or her marks in five subjects as input according to the following rules:

Grade A: For average between 100 and 80 (inclusive)
Grade B: For average between 79 and 65 (inclusive)
Grade C: For average between 64 and 40 (inclusive)

[code].....

View 2 Replies







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