我的代碼下面的代碼片段:Visual Basic窗體.close()方法
'Handle level specific properties
Select Case ScoreCard.CurrentDifficulty
Case 1
intImageCount = 2 'This is the number of images to show at any given time on screen +1
'debug
ScoreCard.CurrentDifficulty = 6
Case 2
intImageCount = 3 'This is the number of images to show at any given time on screen +1
Case 3
intImageCount = 5 'This is the number of images to show at any given time on screen +1
Case 4
intImageCount = 2 'This is the number of images to show at any given time on screen +1
Case 5
intImageCount = 5 'This is the number of images to show at any given time on screen +1
Case 6
frmLevel3_HouseOfMirrors.Show()
Me.Close()
Return
End Select
當case 6
執行frm3_HouseOfMirrors.Show()
執行和我的新形式打開。 Me.close
也會執行,但我的問題是,腳本然後到達返回線。 me.Close()
是不是假設要停止當前窗體上所有代碼的執行並從內存中卸載它自己?
但是這是VB.NET所以你的代碼片段有點沒有意義 – 2013-10-18 13:35:24