I want to either:
Have a textbox a button and a picture box - User types somthing into the text box, If its one of the words in my i've put in the IF bit of my script then the picture changes to a different one, else it leaves it the same.
Or
Have some radio buttons / tick boxes. User clicks in a radio button / tick box and the picture in the picture box changes accordingly.
BUT
If there isn't a way to get the picture box to change pictures like that some text that changes would be OK as a second choice.
Thanks in advance!

Simple thing needed PLEASE!!!!
Alex Krapivin
Simple code showing both items requested.
Public Class Form1
''' <summary>
''' Match on the textbox contents in an if statement
''' </summary>
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim bmatchfound As Boolean = False
If Textbox1.Text = "Test" Then
Me.PictureBox1.Load("d:\image1.bmp")
ElseIf Textbox1.Text = "ABC" Then
Me.PictureBox1.Load("d:\image2.bmp")
Else
Me.PictureBox1.Image = Nothing
End If
End Sub
''' <summary>
''' Works on the radio button checkchanged event
''' </summary>
Private Sub RadioButton1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged, RadioButton2.CheckedChanged
If RadioButton1.Checked = True Then
Me.PictureBox1.Load("d:\image1.bmp")
ElseIf RadioButton2.Checked = True Then
Me.PictureBox1.Load("d:\image2.bmp")
End If
End Sub
End Class
PedroCGD
CharlieRussell
to load an image into the picturebox:
Me.thePictureBox.Image = Image.FromFile("path\filename.ext")
you can load it at any time you like, any picture you like (as long as the format is supported of course) It's not entirely clear on the first part of your question what you really want, I understand that if user types in something in the textbox and you press a button, it will then check your list of words and if it exists, you want to load an image correct The above loads an image but have you implemented the whole "check word" part