post #1 of 1
Thread Starter 
Ok i am making a testing application in VB 2005 express.
Basically, i wrote a module which, when a certain image is in the question image box (imgboxquestions) then...when an answer to the question is clicked on a button then that button runs the module and checks what the image in the question box is and then loads a corresponding image (tick or cross for right or wrong answer)...

The Code is below...help is needed ASAP

Module MdlAnswerCorrection

Public Sub AnswerButton1()
If FrmMain.ImgboxQuestions.Image Is My.Resources.Question1 Then
FrmMain.ImgCorrection1.Image = My.Resources.cross
FrmMain.ImgCorrection3.Image = My.Resources.arrow
End If
If FrmMain.ImgboxQuestions.Image Is My.Resources.Question2 Then
FrmMain.ImgCorrection1.Image = My.Resources.tick
End If
If FrmMain.ImgboxQuestions.Image Is My.Resources.Question3 Then
FrmMain.ImgCorrection1.Image = My.Resources.cross
FrmMain.ImgCorrection3.Image = My.Resources.arrow
End If......................etc etc



Private Sub BtnAnswer1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnAnswer1.Click
MdlAnswerCorrection.AnswerButton1()
End Sub

Private Sub BtnAnswer2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnAnswer2.Click
MdlAnswerCorrection.AnswerButton2()
End Sub

Private Sub BtnAnswer3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnAnswer3.Click
MdlAnswerCorrection.AnswerButton3()
End Sub

^^^^ Those are the answer buttons

HELP!?!?!?
    
CPUMotherboardGraphicsRAM
E8500 @ 3.2gHz Gigabyte x48-DQ6 BFG 9800GTX+ (G92) OC Edition 2gb Patriot D9s + 2gb G.Skill Pi PC2-8500 1066Mhz 
Hard DriveOptical DriveOSMonitor
2.5 Tb of WD's SATAII (2 x 500 in RAID 0) Pioneer SATA 20x DVDRW Vista Ultimate x64 SP1 *super-tweaked* Panasonic 42" Widescreen Plasma 
KeyboardPowerCaseMouse
Logitech ELITE multimedia 750w Pc Power & Cooling Silencer (Red) Thermaltake Xaser XI Black w/t Window Logitech G5 2000 dpi gaming 
Mouse Pad
Flexiglow :D 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
E8500 @ 3.2gHz Gigabyte x48-DQ6 BFG 9800GTX+ (G92) OC Edition 2gb Patriot D9s + 2gb G.Skill Pi PC2-8500 1066Mhz 
Hard DriveOptical DriveOSMonitor
2.5 Tb of WD's SATAII (2 x 500 in RAID 0) Pioneer SATA 20x DVDRW Vista Ultimate x64 SP1 *super-tweaked* Panasonic 42" Widescreen Plasma 
KeyboardPowerCaseMouse
Logitech ELITE multimedia 750w Pc Power & Cooling Silencer (Red) Thermaltake Xaser XI Black w/t Window Logitech G5 2000 dpi gaming 
Mouse Pad
Flexiglow :D 
  hide details  
Reply