Form2.Text="変更前" Form2.ShowDialog() Form2.Close() Form2.Text="変更後"
Dim f As Form2 = New Form2() f.Text="変更前" f.ShowDialog() f.Close() f = Nothing f.Text="変更後"