svnno****@sourc*****
svnno****@sourc*****
2010年 11月 22日 (月) 17:28:56 JST
Revision: 1092 http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1092 Author: anis774 Date: 2010-11-22 17:28:56 +0900 (Mon, 22 Nov 2010) Log Message: ----------- Tween.FormInfo.FormInfo_FormClosedにてSystem.NullReferenceExceptionが発生する問題に対応。 再現しないので手探りでNullチェックのみ。 Modified Paths: -------------- trunk/Tween/FormInfo.vb -------------- next part -------------- Modified: trunk/Tween/FormInfo.vb =================================================================== --- trunk/Tween/FormInfo.vb 2010-11-22 05:06:13 UTC (rev 1091) +++ trunk/Tween/FormInfo.vb 2010-11-22 08:28:56 UTC (rev 1092) @@ -155,8 +155,10 @@ ' フォームを閉じたあとに親フォームが最前面にならない問題に対応 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