假設我有兩個按鈕btnCheck和btnOK。我想從btnOK執行btnCheck的幾行代碼。所以當我點擊btnOK時,btnOK的代碼以及BtnCheck的代碼應該一個接一個地執行。我怎麼能在vb.net做到這一點如何在另一個子程序中執行部分代碼
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
..................................
..............CODES 1.............
..................................
.........CODES FROM BtnCheck......
..................................
End Sub
Private Sub btnCheck_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheck.Click
..................................
..............CODES 2...............
..................................
End Sub
[可以使用轉到? ]
我喜歡直接的方法,正是我所期待的。謝謝 – 2011-04-30 04:31:23