The program i am trying to build populates a series of textboxes from a csv datafile and picturebox upon text change.
The problem I ran into is that if there is no picture for a particular record the rest of the record doesnt populate into the textboxes

My thought, and perhaps someone has a better idea on how to handle this behavior is to have a default image loaded in the event, no image was present.

Not sure how to code this statement:

picture box Code:
  1. Me.PictureBox1.Image = Image.FromFile(String.Format("{0}\{1}.jpg", Subject_Values.Label38.Text, Me.list1_MLStxt.Text))

I was going to do so something like this:

potential code Code:
  1. If Image.FromFile(String.Format("{0}\{1}.jpg", Subject_Values.Label38.Text, Me.list1_MLStxt.Text)) Is Nothing Then
  2.             Me.PictureBox1.Image = defaultimage.jpg

If this is a good way to handel the behavior then my question is where would the default image be stored? The program would have to be compiled with the default image? I have yet to compile a program before, getting close though

Thanks for any ideas or help