New Posts  All Forums:Forum Nav:

I challenge thee with VB

post #1 of 30
Thread Starter 
So i am very new to VB and was lost in how to best answer some questions for a lab at school. Any suggestions or advise would be great!

Write syntax so a label will display “Hello everyone”


Write syntax to read content of a TextBox which contains “Hello World” to a label then clear TextBox

Write syntax to add Chevrolet, Ford, Toyota, Honda to in a ListBox

Write syntax to declare a String and Integer variables


Write syntax to initialize String and Integer variables

Write syntax to convert data in txtCost to Single data type

Write syntax to display “Hello World” in a MessageBox

Write syntax to validate color equals “Red” using If…Then…Else statement

Write syntax to validate vehicle make Chevrolet, Ford, Toyota, Honda using Select Case statement


Im not sure about these
Edited by graphicsman - 4/13/11 at 6:31am
OverKill
(18 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1055T Gigabyte 890FXA ATI FirePro V3800 ATI FirePro V3800 
RAMHard DriveHard DriveOptical Drive
16gb GSkill 10666 Seagate Western Digital  LG Blue Ray 
CoolingOSMonitorMonitor
stock air 7 Pro 64 bit (2)22" Acer x223w (2)23" Acer G235H 
KeyboardPowerCaseMouse
Microsoft Wireless Antec 900watt Antec 300 Wacom Tablet 
Audio
Logitech Speakers and sub 
  hide details  
Reply
OverKill
(18 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1055T Gigabyte 890FXA ATI FirePro V3800 ATI FirePro V3800 
RAMHard DriveHard DriveOptical Drive
16gb GSkill 10666 Seagate Western Digital  LG Blue Ray 
CoolingOSMonitorMonitor
stock air 7 Pro 64 bit (2)22" Acer x223w (2)23" Acer G235H 
KeyboardPowerCaseMouse
Microsoft Wireless Antec 900watt Antec 300 Wacom Tablet 
Audio
Logitech Speakers and sub 
  hide details  
Reply
post #2 of 30
Write syntax to display “Hello World†in a MessageBox
Messagebox.show("Hello World", "Hello World")
Darth
(15 items)
 
  
CPUMotherboardGraphicsRAM
Q9550 C1 @ 3.40 Evga 790i FTW 2x EVGA GTX 560 8GB Sector 5 1600 
Hard DriveHard DriveHard DriveOptical Drive
OCZ Agility 2 Hitachi 2TB  Segate 1TB ASUS 
OSMonitorKeyboardPower
Windows 7 Pro 64 Bit Samsung 2333HD ThermalTake Meka Gunit  Antec EW 750w 
CaseMouseMouse Pad
HAF 932 Black Edition Logitech Performance MX EVGA Performance Surface 
  hide details  
Reply
Darth
(15 items)
 
  
CPUMotherboardGraphicsRAM
Q9550 C1 @ 3.40 Evga 790i FTW 2x EVGA GTX 560 8GB Sector 5 1600 
Hard DriveHard DriveHard DriveOptical Drive
OCZ Agility 2 Hitachi 2TB  Segate 1TB ASUS 
OSMonitorKeyboardPower
Windows 7 Pro 64 Bit Samsung 2333HD ThermalTake Meka Gunit  Antec EW 750w 
CaseMouseMouse Pad
HAF 932 Black Edition Logitech Performance MX EVGA Performance Surface 
  hide details  
Reply
post #3 of 30
Come on. This stuff can be found in the first 20 pages of any beginning vb book.
Ever Changing
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 GO 400x9 1.392v p5q pro turbo MSI Twin Frozr III 1G/OC 6950 Kingston HX (4x1gb 800mhz) 
Hard DriveOptical DriveOSMonitor
WD 80gb 16mb cache DVd rw win 7 24" ctl 
PowerCase
Rx 630SS CM 690 II Advanced 
  hide details  
Reply
Ever Changing
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 GO 400x9 1.392v p5q pro turbo MSI Twin Frozr III 1G/OC 6950 Kingston HX (4x1gb 800mhz) 
Hard DriveOptical DriveOSMonitor
WD 80gb 16mb cache DVd rw win 7 24" ctl 
PowerCase
Rx 630SS CM 690 II Advanced 
  hide details  
Reply
post #4 of 30
Thread Starter 
Quote:
Originally Posted by onnetz View Post
Come on. This stuff can be found in the first 20 pages of any beginning vb book.
my apologies if it seems like my two weeks of VB is too much for you. I do realize and have completed this, i was just wanting to know what others thought and figured it would be a good way to see what all others know. I will post all code soon.
Edited by graphicsman - 4/13/11 at 6:38am
OverKill
(18 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1055T Gigabyte 890FXA ATI FirePro V3800 ATI FirePro V3800 
RAMHard DriveHard DriveOptical Drive
16gb GSkill 10666 Seagate Western Digital  LG Blue Ray 
CoolingOSMonitorMonitor
stock air 7 Pro 64 bit (2)22" Acer x223w (2)23" Acer G235H 
KeyboardPowerCaseMouse
Microsoft Wireless Antec 900watt Antec 300 Wacom Tablet 
Audio
Logitech Speakers and sub 
  hide details  
Reply
OverKill
(18 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1055T Gigabyte 890FXA ATI FirePro V3800 ATI FirePro V3800 
RAMHard DriveHard DriveOptical Drive
16gb GSkill 10666 Seagate Western Digital  LG Blue Ray 
CoolingOSMonitorMonitor
stock air 7 Pro 64 bit (2)22" Acer x223w (2)23" Acer G235H 
KeyboardPowerCaseMouse
Microsoft Wireless Antec 900watt Antec 300 Wacom Tablet 
Audio
Logitech Speakers and sub 
  hide details  
Reply
post #5 of 30
Well from your original post I'm sure others thought the same thing I did. That you were looking for someone to do your homework for you and that you had not put forth much effort to do it on your own.
Ever Changing
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 GO 400x9 1.392v p5q pro turbo MSI Twin Frozr III 1G/OC 6950 Kingston HX (4x1gb 800mhz) 
Hard DriveOptical DriveOSMonitor
WD 80gb 16mb cache DVd rw win 7 24" ctl 
PowerCase
Rx 630SS CM 690 II Advanced 
  hide details  
Reply
Ever Changing
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 GO 400x9 1.392v p5q pro turbo MSI Twin Frozr III 1G/OC 6950 Kingston HX (4x1gb 800mhz) 
Hard DriveOptical DriveOSMonitor
WD 80gb 16mb cache DVd rw win 7 24" ctl 
PowerCase
Rx 630SS CM 690 II Advanced 
  hide details  
Reply
post #6 of 30
Thread Starter 
Quote:
Originally Posted by onnetz View Post
Well from your original post I'm sure others thought the same thing I did. That you were looking for someone to do your homework for you and that you had not put forth much effort to do it on your own.
ya.... i guess ur right there, ill post code and request validation, lol
OverKill
(18 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1055T Gigabyte 890FXA ATI FirePro V3800 ATI FirePro V3800 
RAMHard DriveHard DriveOptical Drive
16gb GSkill 10666 Seagate Western Digital  LG Blue Ray 
CoolingOSMonitorMonitor
stock air 7 Pro 64 bit (2)22" Acer x223w (2)23" Acer G235H 
KeyboardPowerCaseMouse
Microsoft Wireless Antec 900watt Antec 300 Wacom Tablet 
Audio
Logitech Speakers and sub 
  hide details  
Reply
OverKill
(18 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1055T Gigabyte 890FXA ATI FirePro V3800 ATI FirePro V3800 
RAMHard DriveHard DriveOptical Drive
16gb GSkill 10666 Seagate Western Digital  LG Blue Ray 
CoolingOSMonitorMonitor
stock air 7 Pro 64 bit (2)22" Acer x223w (2)23" Acer G235H 
KeyboardPowerCaseMouse
Microsoft Wireless Antec 900watt Antec 300 Wacom Tablet 
Audio
Logitech Speakers and sub 
  hide details  
Reply
post #7 of 30
Write syntax so a label will display “Hello everyoneâ€

Code:
lblMessage.Text = "Hello everyone"
Write syntax to read content of a TextBox which contains “Hello World†to a label then clear TextBox

Code:
Dim TextBox As String

TextBox = txtString.Text
txtString.Clear()
Write syntax to add Chevrolet, Ford, Toyota, Honda to in a ListBox

-> Isn't this done in the designer?

Write syntax to declare a String and Integer variables

Code:
Dim Stringname As String
Dim Number As Integer
Write syntax to initialize String and Integer variables

Code:
Stringname = "Text"
Number = 1
Write syntax to convert data in txtCost to Single data type

Code:
txtCost.Text = Integer (?)
Write syntax to display “Hello World†in a MessageBox

Code:
MsgBox("Hello World")
Write syntax to validate color equals “Red†using If…Then…Else statement

Code:
If Colour = Red Then
   <Code>
Else
   <Code>
End If
Write syntax to validate vehicle make Chevrolet, Ford, Toyota, Honda using Select Case statement

Code:
Select Case CarManufacturer
   Case "Chevrolet"
     <Code>
   Case "Ford"
     <Code>
   Case "Toyota"
     <Code>
   Case "Honda"
     <Code>
End Select
    
CPUGraphicsRAMHard Drive
Intel Core i7-4650U Intel HD Graphics 5000 Samsung 8GB DDR3 Samsung 512GB SSD 
OS
Macintosh OS X "Yosemite" 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
Intel Core i7-4650U Intel HD Graphics 5000 Samsung 8GB DDR3 Samsung 512GB SSD 
OS
Macintosh OS X "Yosemite" 
  hide details  
Reply
post #8 of 30
Doing his homework for him? For shame.. for shame.
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
Intellect v2
(9 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7-6700K Processor ASUS ROG MAXIMUS VIII HERO LGA1151 DDR4 M.2 SAT... EVGA GTX 1080 SC ACX 3.0 Crucial Ballistix Sport 32GB DDR4 2400 MT/s (PC... 
CoolingKeyboardPowerCase
Noctua NH-D15 Das Keyboard 4 Professional (Brown) Corsair AX860 Fractal Design Define R5 
Mouse
MIONIX NAOS 7000 
  hide details  
Reply
post #9 of 30
Lol at the "I'll add it later" part.
Lightning
(20 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500K Gigabyte Z68XP-UD3P XFX HD6950 DD 2GB 8GB Corsair Vengeance 1600MHz 
Hard DriveHard DriveHard DriveOptical Drive
Crucial C300 64GB Samsung F2 1.5TB Seagate 500GB LG GH20NS15 
Optical DriveOSMonitorMonitor
Optiarc AD-7261S Win7 64bit 22" LG L226WTQ 19" AOC 
KeyboardPowerCaseMouse
Steelseries 6Gv2  Silverstone ST75F 750W Modular Fractal Design Arc Logitech G500 
Mouse PadAudioAudioAudio
Steelseries QCK Diablo 3 Beyerdynamic DT770 80ohm Fiio E9 Headphone Amp X-Fi XtremeGamer 
  hide details  
Reply
Lightning
(20 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500K Gigabyte Z68XP-UD3P XFX HD6950 DD 2GB 8GB Corsair Vengeance 1600MHz 
Hard DriveHard DriveHard DriveOptical Drive
Crucial C300 64GB Samsung F2 1.5TB Seagate 500GB LG GH20NS15 
Optical DriveOSMonitorMonitor
Optiarc AD-7261S Win7 64bit 22" LG L226WTQ 19" AOC 
KeyboardPowerCaseMouse
Steelseries 6Gv2  Silverstone ST75F 750W Modular Fractal Design Arc Logitech G500 
Mouse PadAudioAudioAudio
Steelseries QCK Diablo 3 Beyerdynamic DT770 80ohm Fiio E9 Headphone Amp X-Fi XtremeGamer 
  hide details  
Reply
post #10 of 30
Thread Starter 
Quote:
Originally Posted by Plex View Post
Doing his homework for him? For shame.. for shame.
thats fine because I believe some of it is wrong, from how i was reading i should say, i will have the answers and post them later.
OverKill
(18 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1055T Gigabyte 890FXA ATI FirePro V3800 ATI FirePro V3800 
RAMHard DriveHard DriveOptical Drive
16gb GSkill 10666 Seagate Western Digital  LG Blue Ray 
CoolingOSMonitorMonitor
stock air 7 Pro 64 bit (2)22" Acer x223w (2)23" Acer G235H 
KeyboardPowerCaseMouse
Microsoft Wireless Antec 900watt Antec 300 Wacom Tablet 
Audio
Logitech Speakers and sub 
  hide details  
Reply
OverKill
(18 items)
 
  
CPUMotherboardGraphicsGraphics
AMD Phenom II X6 1055T Gigabyte 890FXA ATI FirePro V3800 ATI FirePro V3800 
RAMHard DriveHard DriveOptical Drive
16gb GSkill 10666 Seagate Western Digital  LG Blue Ray 
CoolingOSMonitorMonitor
stock air 7 Pro 64 bit (2)22" Acer x223w (2)23" Acer G235H 
KeyboardPowerCaseMouse
Microsoft Wireless Antec 900watt Antec 300 Wacom Tablet 
Audio
Logitech Speakers and sub 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming