タイトル : Re^2: 既存フォームがない場合にのみフォームを起動する。 投稿日 : 2006/03/19(Sun) 12:42 投稿者 : YAS
ちょびっと改良しました。 Dim f As Form Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles Button1.Click If f Is Nothing OrElse f.IsDisposed Then f = New Form End If If Not f.Visible Then f.Show() End If End Sub |