Construct A VB Program That Will Calculate Dog And Cat Ages?
Mar 11, 2009
I am going to construct a VB program that will calculate dog and cat ages, i plan to have a user interface to ask the user if they have a cat or a dog, then id like another window appear to ask how many human years of age is your dog/cat, up to the age of 20 (in human years) with that input the calculator will give you the age equivilent in dog/cat years.
View 1 Replies
ADVERTISEMENT
Jun 4, 2010
I have a stack of 2D dicom images and want to convert to a 3D object using VB.NET. I suppose I can solve it using openGL but any clue would help a lot. Do you know a free (or at least cheap) pack to do it?
View 1 Replies
Feb 11, 2010
I had to develope a program that shows a list of names and age in text editor. I am able to open the file in text editor but not getting the names and ages when typing it in the text box and clicking my "write button" or the file menu write. Everything else seems to be working fine with the exception of getting my message box twice from the event load. I don't know if the below is enough for you to assist me but this is what I should see in the text editor:
[Code]...
View 2 Replies
Apr 26, 2009
Does anyone know how can I calculate pi (π) in VB?
View 6 Replies
Mar 21, 2009
Calculate sum in program? [code]...
View 5 Replies
May 15, 2010
I have a two maskedtextbox, one textbox named as masktxtdepostdate and , masktxtmaturitydate, txtnoofmonth.
i changed maskedtextbox property as date, in format "YYYY-MM-DD";
now i need to calculate masktxtmaturitydate after entering the values in, masktxtdepostdate and txtnoofmonth.[code]...
View 2 Replies
Sep 12, 2011
program that will calculate finalMarks. Year mark counts 20% to the final mark and ExamMark counts 80% to the final Mark. Using case select: calculate final mark and display appropriate color. If the total is < 45 display color black etc
View 4 Replies
May 4, 2010
I'm doing a program that will calculate the new price. Iv been using a class to put my code their. Iv been getting errors in my form code.
Heres the class code
Public Class Computer
Private _id As String
Private _price As Decimal
[Code].....
View 8 Replies
May 17, 2010
I have a DataGridView with two columns, X and Y, which are the X and Y coordinates. What I am trying to do is to let the user input some X and Y coordinates, and it will calculate the best fit line.
View 5 Replies
Jan 4, 2012
iam making a program to calculate depreciation (just to apply what I learned) and when I run the program and made the input, I get an error that says "Please input numeric values." Here is the code for the calculate button [code...]
View 27 Replies
Mar 11, 2010
I am creating a program to calculate digits of pi, I get two error messages. Value is not a member of Integer. I get this message twice.
View 12 Replies
Apr 4, 2009
Im making a small tool that helps gamers keep track of their kills and deaths, and their kill/death ratio.I calculate ratio on startup of the program, straight after kills and deaths are loaded off my website.Dim ratio As Decimal ratio = Val(txt_kills.Text / txt_deaths.Text) At the moment, kills = 172 and deaths = 145. Ratio results in 1,1862068. How can I round this number up and turn this into a number with 2 integers after the dot? ( 1.19 ) I tried a hundred things so far but I cannot figure this out.
View 3 Replies
Oct 10, 2009
I want just a code that calculate and show the traffic (volume) of sending and receiving to/from internet?for example, IE is opening a page and IDM is downloading a file ; NOW , how many bytes has been sent / received
View 5 Replies
May 12, 2012
I want just a code that calculate and show the traffic (volume) of sending and receiving to/from internet?
for example, IE is opening a page and IDM is downloading a file ; NOW , how many bytes has been sent / received?
View 2 Replies
May 2, 2009
i'm making a program to calculate loan using dates, the customer borrows an item on a particular day and returns it on a given day else he would have to pay a certain amount of fine per day, which starts from the date of return if the user returns the item 1 day after the Date of Return, he pays a fine of 50pence if the user returns the item 3 days after the Date of Return, he pays a fine of 25pence per day if the user returns the item 10 days after the Date of Return, he pays a fine of 10pence per day and if the user returns the item 30 days after the Date of Return, he pays a fine of 5pence per day i did something like this, but it's not producing the required answer
Dim returned As Date
Dim due As Double
Dim fine As Double
[Code]....
how do i format a datetime in a textbox?
View 3 Replies
Nov 9, 2009
Option Explicit On
Option Strict On
Option Infer Off
[code].....
View 4 Replies
Jun 8, 2011
I want to calculate the average value of excel table readings 1 hr once... how do i import the sheet and how do i calculate the avg in vb.net?
View 4 Replies
Feb 19, 2010
I ma trying to create a program to calculate my math grade. The way my math teacher explained the grading scale was each test is worth 1 point and each quiz is worth .2 points.
So as an example (add both sides up then divide by both sides)
100 =1
80 = 1
15 = .2
18 = .2
213 divide by 2.4 which equals your grade of 88.75
There are more quizs and tests in the semester and I want the numbers to change with the number of quizs and tests entered. The only problem is I am not sure how to code it. I though I would use IF AND statements but I am not sure where to start.
View 8 Replies
Jan 29, 2010
I am designing and coding a program to calculate commission and pay and I have chosen to use menu items to do the calculations. I have written most of the code but I am seeing a few syntax errors that I do not understand.here is the code...
[Code]...
View 5 Replies
Mar 21, 2012
Actually i don't know how to mentions the years of work into the program and i don't know how to calculate the final result. I took a long time try to solve my problem but i can't.this assignment due tomorrow morning.
Public Class Form1
Private Sub btnClack_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClack.Click
[code].....
View 5 Replies
Feb 18, 2011
if you want to make program to calculate the result of brackets math question , as 6+(9+(5-(1+(2+1)))) , and you made 2 buttons representing ")" and "(" , and you want when the user clicks on the "(" button it just applies that the number before it to be stored in a place like a label such that the program calculates numbers after it and then calculate the produced number and the label number , something will disallow you that the questions with many brackets as the mentioned one above 6+(9+(5-(1+(2+1)))) will for example store 6 and plus sign in a label but after that 6 will be placed by 9 because there is another bracket after 9 , so the question will be calculated false , more clarification for my question is the way brackets are made in the windows calculator so i want a coding idea to make the brackets like in the windows calculator
View 5 Replies
Sep 8, 2011
It is a cashier change return where the user enter the amount owed and the amount paid and when he/she press calculate the program should display the change due as well as the number of Dollars, Quarters, Dimes, Nickels, and pennies returned to the customer. When I run the program sometimes it gives me the right output and others it gives wrong output and it rounds the output. I just want to let you know that I have the option strict on. I will paste the code below
CODE:
View 1 Replies
Feb 14, 2010
For my programm I was told to do a programm to calculate the total and average rainfall. I have done so, but now I am supposed to use two function procedures to calculate the total and average rainfall. I can not seem to figure it out and it is very frustrating.
[Code]...
View 5 Replies
Oct 27, 2009
I need to construct a data array and I am not sure if I can do what I need to do given the data. I probably should opt to store in a new class but that's too advanced for now
the data describes a series of points. each point has its index in a list a boolean, binary value and a list of integers of its neighbour points. so i thought it would be three columns and the third column would store a list. can you do this?
I presume i could get rid of the column dedicated to storing the integers..
View 13 Replies
Dec 20, 2009
I need to construct an XML transaction of the following format[code]...
I was thinking of creating a "GetXml" function on my object that returns the XML representation of the values in the object instance.I could do all the string concatenation myself, but surely there is a cleaner way.
View 4 Replies
Dec 31, 2009
I have an application in VB.Net and now I find out an API is not compatible and requires VB6. I am trying to convert it back to VB6 and have an issue in a Class Module. In VB.Net, I have:
[Code]...
View 7 Replies
Nov 4, 2009
I am trying to make a program that will calculate the height of a falling ball for every .25 seconds starting at 0 and going till the height = 0 or until 10 items have been listed. I have started the code, but it just isnt working out!
Dim h, time as double
Dim aftert as integer
Do While h>0
[Code]....
I get an "expression needed" error from the &time& and nothing is displayed in the list box. Not to mention, I have no idea what to put in the loop or how to limit the list to 10 items or until the ball hits 0.
View 4 Replies
Jun 21, 2010
Im having some trouble to construct a Master-Details form. When I navigate through each record on the master nothing happens on the details. This is so even if there exit a relation between the two tables in the database and in the dataset between the data table. Can anyone provide me with some samples or examples of coding how to proceed?
Furthermore I have tried to programmatically create the relation but the following error occurs: child list for field cannot be created etc
View 1 Replies
Aug 3, 2011
This is probably a dumb question but I have to call one of 30 or so global variables by constructing the variable name to be called from another information. However when i do that it treats it as a string. Any ideas on how to make this work?eg something like this:
Public gsNewYork As String
public sub Getinfo
dim lslocation as string
[code].....
View 1 Replies
Jul 17, 2010
I am looking for a way to read an XML file at run time and construct an Enumerator from it. I got the reading and writing all working, it's just getting all the strings to create an enumerator that's the tricky part. I could get them into a collection of strings or maybe a dictionary, but not sure how to go about converting from these into an enumerator. The goal of this is to allow users to add and delete items from the underlying enumerators and eliminate writing hard coded enumerators. My idea is to allow users to extend the program without coding. This is a Winform vb app thats not using any database but just XML files to store and retrieve things.
View 7 Replies