Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ミューテックスを使用して、アプリケーション用に 1 つのアプリケーションを実行しています。コマンドラインを使用してパラメーターを送信するか、「開く」ときに、そのパラメーターの文字列をリストボックスに追加したいのですが、何か提案はありますか?
そのメソッドの戻り値は string[] であるため、リストのデータソースとして単純に設定できるはずです。何かのようなもの:
listbox.DataSource = Environment.GetCommandLineArgs();