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


ADVERTISEMENT

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

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

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

[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

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

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

Converter C# And VB ?

Aug 9, 2009

I have made simple design for the program

2 texboxes
2 forms

Form1 has:C# to VB converter 2 textbox (where they will put the code from C# or VB ):1 that will put info: other that will apeear the converted text 1 button

I need source how to make when its press button1 to show them in new texbox the souce code that he selected

Form2: VB to C# converter. i need the same and for VB to C# code when its pressed button for Form2

View 3 Replies

Converter VB 6 To .Net ?

Feb 11, 2012

how to convert a project from VB6 to VB.NET using this method below ?

Visual Studio >> File >>Open >>Convert..

Had some plug in or even executable to tell me?

View 7 Replies

Dwg To Xml Converter?

Feb 19, 2010

i am a beginner and trying to write a program that can convert .dwg file into .xml file format.i am familiar with visual studio 2008, vb.net and autocad 2007.

View 6 Replies

VB To C# Converter?

May 23, 2010

Show me a site where there is good conversion available from vb.net to c#?

View 8 Replies

VB6 To .NET Converter?

Jan 20, 2010

My boss has given me a new task of converting his old vb projects to new new .net projects. He wants me to convert both windows as well as web applications to the latest versions. As I am new to programming, I am having difficultly in converting the codes.w if there is any free VB6 to VB.Net Converter which can convert all code. And also let me know if there is any good way to manually convert VB6 code to VB.Net code.

View 6 Replies

.NET To Java Converter?

Dec 27, 2008

existing tool which converts VB.NET Code to Java.

View 1 Replies

C# - WPF Databinding Converter .NET?

Aug 9, 2011

I have a button that i basically want to either show or hide it based on if a certain string has a value or not. I create the buttons in code so i was trying to used databindings with a converter but i can't seem to get the converter on the binding after the value changes. I'm not sure if I'm going after this correctly or not... Here is what i have for creating the button and the binding and the converter. "sFileLocation" is a string inside my class "QuestionsFile". This works for initialization but its just when the value of the string changes, this binding doesn't see the change and doesn't run the converter and all that for me...

Dim btn2 As New Button
Dim b2 As New Binding("sFileLocation")
b2.Mode = BindingMode.TwoWay

[code]....

The thing I don't understand too is that the binding works fine if i just binding the property to the Button.Content. So the property is updating correctly when it gets changed, and the buttons content changes accordingly.

View 3 Replies

C# :: Delphi To .NET Converter?

Sep 4, 2010

.NET converter (either C# or VB.NET)? I've inherited a bunch of Delphi code, never seen Pascal before and rather than learn it, I'd rather just try to use an automated converter, if available, and clean up the code after that. Can't seem to find this kind of tool anyway I search

View 3 Replies

Code Converter To .net?

Jan 30, 2012

i wanted to know if there is any code converter around that can translate from the ruby language to vb.net.

View 14 Replies

How To Make Converter

Dec 13, 2010

i'm trying to make a converter, i have 4 textboxes, 2 of them are encode, the other 2 are decoders.
on the encode process i use:
[code...]

I want it to be decoded when a button is pressed, because I cant use the KeyPress or KeyDown function because it will most likely be copy-pasted.

how would i do that, for instant the char A Will be converted from "W11" to "A".
Now i know there is a function called Convert, but i have no idea on how it works or if it even is proper for this task.

View 13 Replies

Html To Pdf Converter?

Oct 21, 2010

Converting an html template to PDF document using vb.net code.I've a very complex html with lot of tables etc.

Are there some free tools to be used to convert html to pdf using code ?

View 4 Replies

Using The WFC Language Converter?

Dec 7, 2010

can i know how to work with Visual Basic in Visual Studio?

View 2 Replies

Wpf - Can't Get Converter To Work?

Nov 4, 2011

Ive tried to make my converter to work but the XAML doesn't know where it is.. but its there in a folder called Converters. Here how my XAML are setup..Fill="{Binding RequestStatus, Converter={StaticResource converters:StatusToColorConverter}}">

[Code]...

View 1 Replies

.txt To .rtf File Converter Code Fix?

Jul 29, 2009

i have this code to convert an entire .txt file folder into an .rtf file folder.. achieved from one of my question threads.

[Code]...

View 2 Replies

Batch File Converter (PNG To BMP)

Dec 30, 2010

I am trying to create a program that renames files to 1 - (however many files are in the folder) and also convert .pngs to .bmps.

If RadioButton1.Checked = True Then
Dim files As String()
files = IO.Directory.GetFiles(TextBox1.Text)
Dim filepath_new As String
filepath_new = TextBox1.Text
For Each filepath As String In files
[Code] .....

View 7 Replies







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