1. Home
  2. Computing & Technology
  3. Visual Basic

Chapter 4 - Working With Menus and Dialog Boxes - Part 3

By Dan Mabbutt, About.com

3 of 10

The Music Trivia Solution Code - Page 2

  If IndexValue = 3 Then
    If RadioButton3.Checked = True Then
      Debug.Write("Index3 True - Radio1 True" & vbCrLf)
      PictureBox1.Image = _
        System.Drawing.Image.FromFile("..\Yay.bmp")
    Else
      Debug.Write("Index3 True - Radio1 False" & vbCrLf)
      PictureBox1.Image = _
        System.Drawing.Image.FromFile("..\Boo.bmp")
    End If
  End If
  PictureBox1.Visible = True
  Button1.Visible = False
  Button3.Visible = True
End Sub

Private Sub Button2_Click( _
  ByVal sender As System.Object, _
  ByVal e As System.EventArgs) _
  Handles Button2.Click
  End
End Sub

Private Sub Form1_Load( _
  ByVal sender As System.Object, _
  ByVal e As System.EventArgs) _
  Handles MyBase.Load
  Button3_Click(sender, e)
End Sub
Explore Visual Basic
By Category
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB.NET
  5. Working With Menus and Dialog Boxes - Part 3

©2009 About.com, a part of The New York Times Company.

All rights reserved.