This is a sample project. I can't refresh Form1's Picturebox and Label from
Form2:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
PictureBox1.Image = CType(New Bitmap("\image1.jpg"), Image)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim Form2 As New Form2
Form2.Show()
End Sub
End Class
Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
Private Sub Form2_Closing(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
Dim Form1 As New Form1
Form1.PictureBox1.Image = CType(New Bitmap("\image2.jpg"), Image)
Form1.PictureBox1.Refresh()
Form1.Label1.Text = "new text"
Form1.Label1.Refresh()
Form1.Refresh()
End Sub
End Class
Thanks in advance,
Ray