Public Class Form1
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Form2.VTransporte = "Sou o zé da Form 1 !! "
Form2.Show()
End Sub
End Class
Public Class Form2
Private ValorTransportado As String
Public Property VTransporte() As String
Get
Return ValorTransportado
End Get
Set(ByVal value As String)
ValorTransportado = value
End Set
End Property
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
MsgBox(ValorTransportado)
End Sub
End Class
Public Class Form1
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
Process.Start("IExplore.exe", ListBox1.Text)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ListBox1.Items.Add("www.google.com")
End Sub
End Class
Process.Start("IExplore.exe", ListBox1.Text)