
31/03/2007, 09:35
|
 | Colaborador | | Fecha de Ingreso: octubre-2003 Ubicación: Catalonia
Mensajes: 4.334
Antigüedad: 21 años, 5 meses Puntos: 156 | |
Re: pasar valores entre formularios [vb.net 2003] Ya he encontrado un ejemplo que se ajusta a lo que busco:
Form1: Cita: Dim f As New Form2
'Write this in the event you want it, mine is in a button_click
If (f.ShowDialog() = DialogResult.OK) Then
txtShortName.Text = f.Data
End If Form2: Cita: Private _record_data As String
Private Sub lstList_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles lstList.DoubleClick
_record_data = lstList.Text
DialogResult = DialogResult.OK
End Sub
Public ReadOnly Property Data()
Get
Return _record_data
End Get
End Property Fuente: http://www.vbforums.com/showthread.php?t=233092
saludos |