Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 05-24-09   #1 (permalink)
Windows Wrangler
 
MiniTuckin's Avatar
 
intel ati

Join Date: Feb 2008
Location: Lexington, TN
Posts: 997

Rep: 60 MiniTuckin is acknowledged by some
Unique Rep: 39
Trader Rating: 34
Default New to VB... Need help with homework assignment

Hey guys i'm needing some help. I can do the graphical part of this bu after that i am totally lost. I have searched many VB sites for snippets and help on this but cannot find out how to do it.

I'm basically making a small program that converts english to metric for a company.

After loosing $125 million dollars in the Mars orbiter crash, NASA hired you to develop an application that will allow them to convert distances from English to metric units.

* First, install VB.NET.
* Create a new solution named YourName_Unit01.
* The form will contain a minimum of two text box control instances.
* One text box will be used to input the value to be converted, and the second text box will be used to display the results from the calculation.
* Text boxes, when used to display results, must be read-only.
* Write the code to perform the calculations required. Make the Calculate button the Accept button.
* Create a Clear button that will clear both text boxes.
* Create an Exit button.
* Use labels to identify each text box used in the form.
* Make sure the application accepts and calculates decimal values.

All help is greatly appreciated. Thanks
__________________
OC it till it burns!!! LOL

System: Black Beot.... u know the rest
CPU
X3220 @ 3.3ghz Daily @ 1.35v
Motherboard
P35-DS3L
Memory
4 x 2gb Mushkin Redline 1000
Graphics Card
Sapphire 3650
Hard Drive
250gb + 1.5tb storage
Sound Card
Onboard w/ 7.1 Surround Sound Hooked Up
Power Supply
750w Ultra Lifetime
Case
CM690
CPU cooling
TT 735 WC
OS
Vista Ultimate x64 bit
Monitor
42" Philips Eco Tv
MiniTuckin is offline   Reply With Quote
Old 05-24-09   #2 (permalink)
Overclocker
 
Arakasi's Avatar
 
intel nvidia

Join Date: Dec 2007
Location: Texas
Posts: 2,211

Rep: 187 Arakasi is acknowledged by manyArakasi is acknowledged by many
Unique Rep: 155
Trader Rating: 5
Default

You should google how to convert english to metric before you try to put it in code. ;p
__________________
q9650(4.12-OC) 3dmark06 20k
I FOLD, DO YOU ?
Iphone Problems? Toss me a PM.

System: Arak's System
CPU
[-q9650_4.125ghz_(1.38v)-]
Motherboard
[-Evga 780i A1 (vdroop modded)-]
Memory
[-4GB Mushkin pc2-8200 @ 1100mhz 5-5-5-15 2.1v-]
Graphics Card
[-x2 Evga GTX285 (729/1620/2664)+8800gt(physX)-]
Hard Drive
[-WD Velociraptor 150g,500gigCgate,1TBWDcavblk-]
Power Supply
[-1000w Ultra X3-]
Case
[-CoolerMaster Haf 932-]
CPU cooling
[-TRUE120(Lapped) /w x2 Kaze's-]
GPU cooling
"stock/on/GTX285"-"TTDuOrb/on/8800GT"
OS
[-Windows 7 RC build.7100-]
Monitor
24"Samsung 20,000:1(DFC) 5ms Refresh (HDMI)
Arakasi is offline   Reply With Quote
Old 05-24-09   #3 (permalink)
Windows Wrangler
 
MiniTuckin's Avatar
 
intel ati

Join Date: Feb 2008
Location: Lexington, TN
Posts: 997

Rep: 60 MiniTuckin is acknowledged by some
Unique Rep: 39
Trader Rating: 34
Default

1 in = 2.54 cm
1 ft = 30.48 cm = 0.305 m
1 yd = 0.914 m
1 mi = 1.609 km
__________________
OC it till it burns!!! LOL

System: Black Beot.... u know the rest
CPU
X3220 @ 3.3ghz Daily @ 1.35v
Motherboard
P35-DS3L
Memory
4 x 2gb Mushkin Redline 1000
Graphics Card
Sapphire 3650
Hard Drive
250gb + 1.5tb storage
Sound Card
Onboard w/ 7.1 Surround Sound Hooked Up
Power Supply
750w Ultra Lifetime
Case
CM690
CPU cooling
TT 735 WC
OS
Vista Ultimate x64 bit
Monitor
42" Philips Eco Tv
MiniTuckin is offline   Reply With Quote
Old 05-24-09   #4 (permalink)
S my D IW!
 
BlankThis's Avatar
 
intel nvidia

Join Date: Feb 2008
Location: █♣█
Posts: 4,467
Blog Entries: 8

Rep: 278 BlankThis is a proven memberBlankThis is a proven memberBlankThis is a proven member
Unique Rep: 238
Folding Team Rank: 354
Team Name: Just Be Cause
Trader Rating: 17
Default

By "English to metric units" do they mean...

One inch = 2.55cm
One meter = etc.

?

~B~

System: | Just Because |
CPU
| E8600 @ 4.5GHz (Thanks Bruce!) |
Motherboard
| ASUS P5Q-E |
Memory
| PATRIOT EXTREME 2x2GB (5-5-5-12) 900MHz @ 2.0v |
Graphics Card
| eVGA 8800GS 384MB @ 650/850/1800 |
Hard Drive
| SEAGATE 250GB 7200.10 + 500GB 7200.12 |
Sound Card
| AUDIGY 2 |
Power Supply
| PC POWER & COOLING 500W |
Case
| DD WATERBOX PLUS |
CPU cooling
| HDT S1283 w/ KAZE 2K + BOLT-THRU |
GPU cooling
| COOLINK GFX CHILLA |
OS
| VISTA HOME PREM. 64-BIT |
Monitor
| BENQ FP531 x 2 |
Overclock.net - 2009 Chimp Challenge Champions
BlankThis is offline I fold for Overclock.net Overclocked Account BlankThis's Gallery   Reply With Quote
Old 05-24-09   #5 (permalink)
Overclocker
 
Arakasi's Avatar
 
intel nvidia

Join Date: Dec 2007
Location: Texas
Posts: 2,211

Rep: 187 Arakasi is acknowledged by manyArakasi is acknowledged by many
Unique Rep: 155
Trader Rating: 5
Default

It may be bad programming practices, but i always just use the if code if i cannot figure something out lol

Have the form and title state its converting.

Have text box 1 list amount to convert

and in code onclick ( the calculate button ) if value in text1 = true

enter the converting code and out put it to the second.

else use a msgbox and ask to enter a value, doesnt seem that bad, however its been a year or two since i sat in a classroom.
__________________
q9650(4.12-OC) 3dmark06 20k
I FOLD, DO YOU ?
Iphone Problems? Toss me a PM.

System: Arak's System
CPU
[-q9650_4.125ghz_(1.38v)-]
Motherboard
[-Evga 780i A1 (vdroop modded)-]
Memory
[-4GB Mushkin pc2-8200 @ 1100mhz 5-5-5-15 2.1v-]
Graphics Card
[-x2 Evga GTX285 (729/1620/2664)+8800gt(physX)-]
Hard Drive
[-WD Velociraptor 150g,500gigCgate,1TBWDcavblk-]
Power Supply
[-1000w Ultra X3-]
Case
[-CoolerMaster Haf 932-]
CPU cooling
[-TRUE120(Lapped) /w x2 Kaze's-]
GPU cooling
"stock/on/GTX285"-"TTDuOrb/on/8800GT"
OS
[-Windows 7 RC build.7100-]
Monitor
24"Samsung 20,000:1(DFC) 5ms Refresh (HDMI)

Last edited by Arakasi : 05-24-09 at 07:27 PM
Arakasi is offline   Reply With Quote
Old 05-24-09   #6 (permalink)
Windows Wrangler
 
MiniTuckin's Avatar
 
intel ati

Join Date: Feb 2008
Location: Lexington, TN
Posts: 997

Rep: 60 MiniTuckin is acknowledged by some
Unique Rep: 39
Trader Rating: 34
Default

so as far as the teachers instructions above would it be easier to just use a listbox or multiple text boxes and programming for each?
__________________
OC it till it burns!!! LOL

System: Black Beot.... u know the rest
CPU
X3220 @ 3.3ghz Daily @ 1.35v
Motherboard
P35-DS3L
Memory
4 x 2gb Mushkin Redline 1000
Graphics Card
Sapphire 3650
Hard Drive
250gb + 1.5tb storage
Sound Card
Onboard w/ 7.1 Surround Sound Hooked Up
Power Supply
750w Ultra Lifetime
Case
CM690
CPU cooling
TT 735 WC
OS
Vista Ultimate x64 bit
Monitor
42" Philips Eco Tv
MiniTuckin is offline   Reply With Quote
Old 05-24-09   #7 (permalink)
Overclocker
 
Arakasi's Avatar
 
intel nvidia

Join Date: Dec 2007
Location: Texas
Posts: 2,211

Rep: 187 Arakasi is acknowledged by manyArakasi is acknowledged by many
Unique Rep: 155
Trader Rating: 5
Default

I would go with multiple textboxes

Instructions:

One text box will be used to input the value to be converted, and the second text box will be used to display the results from the calculation.
* Text boxes, when used to display results, must be read-only. <<<
__________________
q9650(4.12-OC) 3dmark06 20k
I FOLD, DO YOU ?
Iphone Problems? Toss me a PM.

System: Arak's System
CPU
[-q9650_4.125ghz_(1.38v)-]
Motherboard
[-Evga 780i A1 (vdroop modded)-]
Memory
[-4GB Mushkin pc2-8200 @ 1100mhz 5-5-5-15 2.1v-]
Graphics Card
[-x2 Evga GTX285 (729/1620/2664)+8800gt(physX)-]
Hard Drive
[-WD Velociraptor 150g,500gigCgate,1TBWDcavblk-]
Power Supply
[-1000w Ultra X3-]
Case
[-CoolerMaster Haf 932-]
CPU cooling
[-TRUE120(Lapped) /w x2 Kaze's-]
GPU cooling
"stock/on/GTX285"-"TTDuOrb/on/8800GT"
OS
[-Windows 7 RC build.7100-]
Monitor
24"Samsung 20,000:1(DFC) 5ms Refresh (HDMI)
Arakasi is offline   Reply With Quote
Old 05-24-09   #8 (permalink)
Windows Wrangler
 
MiniTuckin's Avatar
 
intel ati

Join Date: Feb 2008
Location: Lexington, TN
Posts: 997

Rep: 60 MiniTuckin is acknowledged by some
Unique Rep: 39
Trader Rating: 34
Default

As far as the first one goes
1 in = 2.54 cm

The code should be something like this

If Textbox1.txt = true
then Textbox1.txt * 2.54 = Textbox2.txt
__________________
OC it till it burns!!! LOL

System: Black Beot.... u know the rest
CPU
X3220 @ 3.3ghz Daily @ 1.35v
Motherboard
P35-DS3L
Memory
4 x 2gb Mushkin Redline 1000
Graphics Card
Sapphire 3650
Hard Drive
250gb + 1.5tb storage
Sound Card
Onboard w/ 7.1 Surround Sound Hooked Up
Power Supply
750w Ultra Lifetime
Case
CM690
CPU cooling
TT 735 WC
OS
Vista Ultimate x64 bit
Monitor
42" Philips Eco Tv
MiniTuckin is offline   Reply With Quote
Old 05-24-09   #9 (permalink)
Windows Wrangler
 
MiniTuckin's Avatar
 
intel ati

Join Date: Feb 2008
Location: Lexington, TN
Posts: 997

Rep: 60 MiniTuckin is acknowledged by some
Unique Rep: 39
Trader Rating: 34
Default

k guys i'm doing this wrong. any ideas what im doing wrong?
__________________
OC it till it burns!!! LOL

System: Black Beot.... u know the rest
CPU
X3220 @ 3.3ghz Daily @ 1.35v
Motherboard
P35-DS3L
Memory
4 x 2gb Mushkin Redline 1000
Graphics Card
Sapphire 3650
Hard Drive
250gb + 1.5tb storage
Sound Card
Onboard w/ 7.1 Surround Sound Hooked Up
Power Supply
750w Ultra Lifetime
Case
CM690
CPU cooling
TT 735 WC
OS
Vista Ultimate x64 bit
Monitor
42" Philips Eco Tv
MiniTuckin is offline   Reply With Quote
Old 05-24-09   #10 (permalink)
4.0ghz
 
Havegooda's Avatar
 
intel nvidia

Join Date: Sep 2007
Location: Seaside, CA
Posts: 6,218
Blog Entries: 1

Rep: 393 Havegooda is a proven memberHavegooda is a proven memberHavegooda is a proven memberHavegooda is a proven member
Unique Rep: 279
Trader Rating: 20
Default

You need to be more descriptive than, "I'm doing it wrong"

~Gooda~
__________________

Start folding HERE!
Quote:
Originally Posted by alexgheseger View Post
Wow...

I never thought i'd have to say this, but any penis pictures will net you a hefty infraction mmkay?
Engineering Sample CPUs: Q6600 B0 - Xeon E3110 (E8400) E0 - E5400 (possibly) - E8400 (possibly)

System: Water Cooled Quad
CPU
E3110 Engineernig Sample
Motherboard
DFI DK X48
Memory
4x2GB G.Skill DDR2-1000
Graphics Card
9800GX2
Hard Drive
4x640GB WD AALS - RAID5
Sound Card
Onboard
Power Supply
Ultra X3 850W
Case
RocketFish (Lian-Li) by Cyberdruid
CPU cooling
D-Tek Fusion V1
GPU cooling
Full-cover waterblock.
OS
Vista Ultimate x64
Monitor
Samsung 245BW (24")
Overclock.net - 2009 Chimp Challenge Champions
Havegooda is offline Overclocked Account   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 06:14 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.18492 seconds with 8 queries