« [Command Prompt] 自分のPCのユーザーアカウント一覧 | メイン | [VB6.0] 全フォームのUnload »

2005年07月30日

[VB6.0] 二重起動防止

'--- 標準モジュールに書く

Private Sub Main()
If App.PrevInstance Then End
frmMain.Show
End Sub

プロジェクト→プロジェクトのプロパティ→全般タブ
スタートアップの設定→Sub Mainを選択

2005 / 07 / 30