From 8c1ccd50038120f84d8a0753b397aaf872779bbd Mon Sep 17 00:00:00 2001 From: anis774 Date: Mon, 22 Nov 2010 08:28:56 +0000 Subject: [PATCH] =?utf8?q?Tween.FormInfo.FormInfo=5FFormClosed=E3=81=AB?= =?utf8?q?=E3=81=A6System.NullReferenceException=E3=81=8C=E7=99=BA?= =?utf8?q?=E7=94=9F=E3=81=99=E3=82=8B=E5=95=8F=E9=A1=8C=E3=81=AB=E5=AF=BE?= =?utf8?q?=E5=BF=9C=E3=80=82=20=E5=86=8D=E7=8F=BE=E3=81=97=E3=81=AA?= =?utf8?q?=E3=81=84=E3=81=AE=E3=81=A7=E6=89=8B=E6=8E=A2=E3=82=8A=E3=81=A7N?= =?utf8?q?ull=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=81=AE=E3=81=BF?= =?utf8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@1092 e39ad16e-3079-482e-bb30-4b4d378143b6 --- Tween/FormInfo.vb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tween/FormInfo.vb b/Tween/FormInfo.vb index b9cf1365..634e3a9c 100644 --- a/Tween/FormInfo.vb +++ b/Tween/FormInfo.vb @@ -155,8 +155,10 @@ Public Class FormInfo ' フォームを閉じたあとに親フォームが最前面にならない問題に対応 Private Sub FormInfo_FormClosed(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase.FormClosed - Owner.TopMost = Not Owner.TopMost - Owner.TopMost = Not Owner.TopMost + If Owner IsNot Nothing AndAlso Owner.Created Then + Owner.TopMost = Not Owner.TopMost + Owner.TopMost = Not Owner.TopMost + End If End Sub End Class -- 2.11.0