Ciao ragazzi sto facendo un programmino con il quale simulare un piccolo campionato di calcio in un form faccio selezionare la squadra da usare...ma come faccio poi a passare la squadra scelta nell'altro form? nel secondo form faccio questo...
codice:
Public Class Form2
    Public sqdr As String
    Public Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        If Milan.Checked = True Then
            sqdr = Milan.Text
        End If
        If Juventus.Checked = True Then
            sqdr = Juventus.Text
        End If
        If Roma.Checked = True Then
            sqdr = Roma.Text
        End If
        If Inter.Checked = True Then
            sqdr = Inter.Text
        End If
        If Napoli.Checked = True Then
            sqdr = Napoli.Text
        End If
        If Lazio.Checked = True Then
            sqdr = Lazio.Text
        End If
        If Palermo.Checked = True Then
            sqdr = Palermo.Text
        End If
        If Udinese.Checked = True Then
            sqdr = Udinese.Text
        End If
        If Fiorentina.Checked = True Then
            sqdr = Fiorentina.Text
        End If
        If Cesena.Checked = True Then
            sqdr = Cesena.Text
        End If
        Dim TerzoForm As New Form3
        TerzoForm.Show()
    End Sub
End Class
i nomi delle squadre sono dei radiobutton...
poi nel form 3 faccio questo...
codice:
Public Class Form3
    Public Sub Form3_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Dim s As String
        s = Form2.sqdr
        Label1.Text = s
    End Sub
End Class
ma il valore che mi ritrovo in s è Nothing
...
Come devo fare?