VS 2008 Making A Units Converter?

Feb 22, 2012

So i decided to make a units converter for my term's project and my teacher insisted on including the combo box in this project. I'm not really familiar with the combo box as i am still a beginner in visual basic. I've looked around and learned a bit about using the combo box but later i faced a problem. First i created a Main combo box and placed it in the middle of the form. I managed to use the select case command to make other combo boxes appear and disappear as i wish. I don't really know how to describe the problem, i want to make it that if i choose the input as a unit and the output is any other unit from two different combo boxes, the value in the input text box would be multiplied by a certain conversion factor and the result will be shown in the output text box.

View 1 Replies


ADVERTISEMENT

Making A Units Converter?

Sep 22, 2011

So i decided to make a units converter for my term's project and my teacher insisted on including the combo box in this project. I'm not really familiar with the combo box as i am still a beginner in visual basic. I've looked around and learned a bit about using the combo box but later i faced a problem. First i created a Main combo box and placed it in the middle of the form. I managed to use the select case command to make other combo boxes appear and disappear as i wish. I don't really know how to describe the problem, i want to make it that if i choose the input as a unit and the output is any other unit from two different combo boxes, the value in the input text box would be multiplied by a certain conversion factor and the result will be shown in the output text box

View 7 Replies

Making An Image Converter?

Sep 4, 2011

I have been practicing, and have created an extremely simple image converter.I want to include some vector formats. The formats that I want to include, but aren't in System.Drawing.Imaging.ImageFormat

are
.ai
.cdr
.dxf

[code]....

How would I go about writing the code, to where they would work? Is there a way to make them recognized?

View 3 Replies

Check If Input To Group Number And Number Of Units Are Correct Input By Making Error Handling Exceptions

Sep 23, 2010

Part of my assignment is to check if input to Group Number and Number of Units are correct input by making error handling exceptions...

I have to check the following:
a) group number is neither 501 nor 062
b) number of units are NOT numbers
c) number of units is NOT a positive number

So my first question is, am I checking correctly? 2nd question is, How do I make sure my Exceptions will pertain to their correct respective things (a, b, and c.. above)?

[Code]...

View 6 Replies

[2008] Finding Distance Between Unevenly Spaced Units?

Jan 23, 2009

I'm trying to write a little program to help me find the distance (in feet/inches) between the frames of a ship. This would be fairly easy, except the frames are unevenly spaced.Let's say this is a top view of a shape, and the frames are vertical lines that comprise the overall ship. (In ships, this is the shape of the hull.) Each number is a frame.

1 2 3 4 5 6 7 8 9 10 11 12 13

In this example, there are 1 units between frames 1-3, two units between frames 3-6, three units between 6-9, four units between 9-11, and 1 unit between 11-13.So, what I want to do is post a program where the user inputs two frame numbers: so they would enter, for instance, a start location of 5 and an end location of 11. So, it would calculate the number of units between those two frames based on the limits. So, between 3-6 there are two units, so it would subtract the start location from the nearest limit (6).

6-5 = 1

Multiply by 2 units spacing per frame, so that's 2 units. Frames 6-9 are all included, so 9-6=3 x 3 units = 9 units. Since 9-11 are also all included, it would be 11 - 9 = 2 x 4 units = 8 units. Then the program would add that all together - 2 + 9 + 8 = 19 units total.

Now, for my instance, there are a few more complications (it's in inches, and large increments (i.e. 36" spacing), and there are 304 total frames split between the middle of the ship in two sections, fore and aft of the line), but really I'm just trying to get a handle on how to impose these limits and calculate the distance. Attached is the proposed layout for my program (ignore the 20'5", that's just how I want the output to look).

View 2 Replies

IDE :: Get VB 6.0 To Visual Studio 2008 Converter?

Feb 18, 2010

get VB 6.0 to Visual Studio 2008 converter?

View 1 Replies

VB 2008 Metric Unit Converter?

Aug 24, 2010

i am new to VB and am trying to make a metric to imoerial unit converter in VB 2008. I have created a form with 2 list box's with MM, CM, KM etc ....... and the other Inches Miles etc I have added 2lables with convert from and convert to and also 2 blank text box's the first one to choose the number i would like to convert and another to show the converted unit, I have also added a convert button.I am really struggling to find the correct code to make this work.

View 2 Replies

Vb 2008 Roman Numeral Converter?

Oct 19, 2009

Public Class Form1
Dim Character As String
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code]......

View 3 Replies

VS 2008 Make A Video Converter Using .Net?

Dec 26, 2009

It is possible to make a video converter using VB .Net? If yes with what I should start?

View 2 Replies

VS 2008 Numbers To Words Converter

Nov 1, 2010

I'm trying to create a program that takes 7 numbers and converts them to Letters. To do this I have created a TextBox to enter the 7 digit number in , a CONVERT Button, and a LIST BOX to display the thousands of results. This is created using a Windows Application Form.

[Code]...

View 4 Replies

VS 2008 Tempreture Converter And Loop

Nov 17, 2009

At the moment im tryng to create a celcious to fahrenheit i already got the formula and so i put it into visual basic. My goal is to create a programm with two textboxes

one celcious and the other one fahrenheit.[code...]

THen i realized that loop is created because if i write 12 in celcious it outputs to fahrenheit which outputs back to celcious ecc.. infact when i debug it says

Make sure you do not have an infinite loop or infinite recursion .I would like to have a programm with 2 textboxes. If in one i put 12 then the respective fahrenheit comes out; If in fahrenheit i put 55 then the respective celcious comes out.

View 9 Replies

VS 2008 Trying To Make A Unit Converter

Sep 17, 2011

I'm a bit new to these forums but anyways let me get to the point. I'm trying to make a Unit Conversion Program on VB 08 and I am trying to make it so I don't use too many radio buttons, however I may use it if there is no other option. And I also have to make the program do it both ways

For Example I want to convert Fahrenheit to Celsius and Celsius to Fahrenheit in the same textbox or some sort of box.

View 9 Replies

VS 2008 World Time Converter?

Jan 20, 2011

after numerous google searches and comparing excerpts from different peoples' various codes I could not get this program to work, though I came quite close. I'm attempting to make a program that will tell me the time in different parts of the world, a personal use program that I thought would help me exercise my vb skills.

The problem I'm having, however, is that when it should be showing my time it is either 5 hours ahead or 5 hours behind. I tried adding variables and deleted them again time and time again trying to make adjustments but all I managed to do was make the timer get stuck at 12:00:00 AM.

[Code]...

View 10 Replies

VS 2008 : Make A Simple Character Converter?

Jul 27, 2009

I'm trying to make a simple character converter i.e. (A converts to O) or (C converts to V) I need to make defined parameters for the entire alphabet.I have two text boxes set up and a command button. I'm trying to make it so the text inputted into the first textbox is converted (using the defined parameters) Into the second textbox with a click of the button.

View 5 Replies

Create A BMI Calculator Using Metric Units?

Jan 24, 2010

ive got to create a BMI calculator using metric units, when i enter my data, it doesnt work (i put in 1.5m and 90kg but the answer comes out at 3, and in clearly not anorexic heres what ive got at the moment

Dim BMIResults As New frmBMIResults
Dim Answer As Integer
Dim BMIAnswer As Integer
Answer = CType(tbHeight.Text, Integer) * 2
BMIAnswer = CType(tbWeight.Text, Integer) Mod Answer
'BMIResults.Show()
'Me.Hide()

View 3 Replies

InputFile.PostedFile.ContentLength Units Of Measurement?

Sep 13, 2010

the units measured by InputFile.PostedFile.ContentLength . I need to make sure the file is less than 500k.

View 2 Replies

DataTable - Edit Table When Project P1 Recieves Some Units?

Dec 16, 2009

I have original dataTable as [code].....

But I want to edit this table so as when Project P1 recieves some Units then in the next entry of Project P1 the Units ( Actual) Should be equal to Units (Actual) - Units Recieved. after editing the datatable it should be something like this [code].....

View 1 Replies

Convert Entered Units And Display Them In The Text Boxes?

Mar 27, 2011

The program I am making requires the user to select what units he will be using. But it has to be able to convert his entered units and display them in the text boxes at all times during run-time. It works fine the first time the user switches units, but the second time the units are switched all the values in the text boxes go to 0... Ok Button

[code]...

View 5 Replies

Create A Program That Will Convert Between Metric And Standard Units?

Oct 25, 2011

im trying to create a program that will convert between metric and standard units.I chose length as my measurement so i have nanometer,millimeter,centimeter,meter,hectometer,kilometer,inc,feet,yard and mile.i wanted the input to be

- number to be converted(text box)

-unit number is in(combo box)

-unit to convert to(combo box)

i know how to do combo boxes,buttons and labels and stuff.The output is the converted number this is what i have so far but its soooo wrong?

Public Class Form1
Private Sub Convert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Convert.Click
Dim Inch, Feet, Yard, Mile As Integer
Dim Nanometer, Millimeter, Centimeter, Meter, Hectometer, Kilometer As Double

[code]....

View 1 Replies

Place Multiple Units On The Battlefield With Mouse Click

Oct 16, 2010

I'm trying to place multiple units that have already been selected on a previous form to appear where selected on the battlefield. I have tried it multiple ways and all I can do is get one to appear not the econd ect.

[Code]...

View 1 Replies

Forms :: Changing Measurement Units Of Form To From Pixels To Twips

Jan 19, 2010

Is there any way so that i can set the measurement unit of a form from Pixels to Twips?

View 5 Replies

Java - Distance Units In Com.vividsolutions.jts.geom.Geometry Class?

Jan 28, 2010

Our VB.NET project is using a Java library from Vivid Solutoins [URL}... to do Geometry calculations.[URL}...

What I can't figure out are the units specifically for the Buffer property, or any other distance for that matter. My program is dealing with Nautical Miles, and the documentation gives no indication if the units are degrees, miles, Nautical Miles, Kilometers, inches, etc.

View 2 Replies

Combobox - .net Cascading ComboBoxes Connected To DataSet From Access - Changing Units And Decimal To Fractions?

Oct 2, 2011

I have a DataSet with a DataTable that has several numeric columns of Data. The numeric data is composed of distances given in U.S. Standard units. I currently have my ComboBoxes set up and working, but I need to expand on what I currently have in two ways.I need to be able to convert the Decimal numbers in my data column being displayed to Fractions, is there a way to do this and maintain databinding? In this case its the Display Member of the data source...I need to be able to display my drop down options in different sets of units... I've written Unit Conversion classes to help take care of this, but I don't know if I can somehow do this as well and maintain databinding? I'd like to convert the units on the display members as well...

Private Sub ComboBox1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles ComboBox1.SelectionChangeCommitted
Select Case ComboBox1.SelectedItem

[code]....

What is the best approach for using ComboBoxes when dealing with issues such as displaying fractions and units...

View 1 Replies

VB Express 2008 - File Directory - Coded A Video Downloaded - Want To Include A Converter As A Separate Exe File

Feb 15, 2011

Anyways, i have coded a video downloaded and i want to include a converter as a separate exe file. But obviously people may have different file directories so a simple piece of code i have used won't work. This is what i have: Also where would i place the exe file?

View 3 Replies

VS 2008 Unit Converter Handling Multiple Unit Types

Apr 12, 2011

Does anyone have a nice sample of a unit convertor handling multiple unit types that I can integrate in my application? I have found this one, but it is only handling one type of unit. For example I want to convert weight as well as volume from and to imperial units.

View 8 Replies

Designing Software - Making A MPC Sampler - Drum Machine - Making A Sound Directory ?

May 16, 2012

I'm a huge music person (got my own lil record thing going) but I'm wanting to design a program that would make music in my way. I have a decent amount of background knowlege of Visual Basic and Java I'm just wondering how could I execute this whole project. The Project is making a MPC Sampler. MPC is a drum machine; a machine with buttons that once you press it that it will play a sound from a drum (ex: snare, kick, tom, ect.) . So I would want to make some pads on my program that each have their own sound. Total of 16 pads. Which the design wouldn't be hard to make nor would the functionality of it having the play back sound (in my opinoin it wouldn't be hard atleast). But the thing is I wanna map out these pads to number keys on the number pad or keyboard. I'm not so sure how to do that. But that's all the easy stuff...

Also finding information is making a sound directory. What I mean by this is that I want to make a User Interface that will open up a file directory of sounds and the user can select what "kick" or "snare" sound he may want for the kick or snare pad. I don't know how to do that or even know what to search; neverless I don't know if this whole project idea is a good idea for Visual Basic or another programing language.

Also LATER ON I am wanting to add a record and export function that alows users to..well...record and export their beat or instrumental ha. That doesn't seem too too complex (mainly due to the fact that all it needs to do is record the users key strokes and then show them and play the sounds, but obviously it would get more complex than that.)

Here is an image of one of many MPCs but one with a directory - [URL]

View 5 Replies

Making A Calculator In VB 2008?

Jan 20, 2010

I have to write a program that allows users to specify two numbers and then adds, subtracts or multiplies them when the user clicks on the appropriate button. The out put should give the aritmatic performed and the result. I inserted an attachment on what it should look like also Public Sub btnCompute_Click() Handles btnCompute.Click " here at this one I am getting an error message Error 1 Statement is not valid in a namespace. C:\Users\Tiffney\Desktop\School projects\WindowsApplication1\Form1.vb 1 1 WindowsApplication1"

[Code]...

View 14 Replies

Making A Patcher Using VB 2008

Jan 1, 2011

I am having some trouble with patching a file in Visual Basic 2008. The idea is like that.

1- Store File In The Program Using "Resources".

2- If The Program Is Runned. My Program Should Show This Message "Please Close The Program" Or Making My Program Close The Program That I want To Patch.

3- If The Program That I want to patch is closed. Then When you click the button. the file dialogue opened and give to user the ability to choose the file that i want to modify "Replace or patched" after that the file will copied from resource and replaced the old file "Patched" after when this operation finished.

4- show this message "Your Program Is Patched. Enjoy", and the resources file should be crypted Waiting The Solution.

View 6 Replies

Making A To Do List In Vb 2008

Feb 9, 2011

I want to create an app that is constantly running and as part of my desktop toolbar. When I mouse over the icon, I want the list to show in front of all other windows on the screan. I, also, want it to fade away once the mouse leaves the icon.If the icon is clicked, the window displays.

I want to be able to click-and-hold the title bar to move it around when the window is displayed. I want the full display of the window to be a check box list with each line being ~25 characters long. At the top of the window, there should always be an open line on top of the list where I can enter a new "task," and hitting the "ENTER" key will save the line and move it down one line, as well as the entire list underneath

The action of ENTERing a new "task" should spawn a new open line at the top of the checkbox where the user can enter a new task. When a box (located to the left in front of each line of text) is checked for a line, that line will disappear."Checking" a box should move every line underneath of the Checked (and thus deleted) line up one line. There should be a "close" or "minimize" (depending on how you keep in to the task bar) button the hide the app when I'm through using it.

View 1 Replies

VS 2008 Making A Button Pad

May 17, 2009

Im making a Program in VB 2008 for Tablet PC's in which you Log in Using a Virtual Keypad. i need to know how to insert a number, like in MS Calculator. (to press a button, and for a number to be added to the text box)

View 1 Replies







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