I would like to do 2 things (or one of the two)

first,
I have in form1 a textbox1 and i would like to bring the info of it to a textbox (or label) in form2

second,
If it's possible i would like to set a picture from form1 to form2 (if that's possible)

(i'm new and noob)

Recommended Answers

All 2 Replies

Hi,

For your first question, you can do it like this:

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        TextBox1.Text = Form1.TextBox1.Text

    End Sub

Hi,

For your second question, you need to use this in the load event of your Form1:

Picturebox1.Image=My.Resources.imagename

In your form2 you can show it like this:

PictureBox1.Image = Form1.PictureBox1.Image
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.