ぽんたのプログラミング勉強部屋(仮)

プログラミングについて色々勉強したことのメモ集です。どこにでも載っているような情報ばかりですw

2016-08-20から1日間の記事一覧

mutexを使ってアプリの二重起動を禁止する方法

Mutexクラスを使う事でアプリの二重起動を禁止することができます。まずはApp.xamlにStartupとExitのイベントを登録します。 <Application x:Class="Sample.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Startup="Application_Startup" Exit="Application_Exit"> </application>