It opens a 2nd instance of the form.....

heres what Im trying to do-

My program generates random backrounds, and shows the image number in a textbox on form1. I want the use to be able to click a button and have form2, credits, showup. From there, I want the user to be able to click on one of the people whos image I used and have that image number appear in the textbox on the first form...

So I need to transfer the text from form2 to form1

This is basicially what I want:

VB Code:
  1. If Image = Nick then
  2. Generatebackround (nick)
  3. form1.txtImageNumber.text = "4"

when I add form1.show after assinging the textbox "4" it opens another instance of form 1, with the text changed properly, but the first instance remains the same as before.


-Nick