static Mutex rotate = new Mutex(true, Path.GetFileNameWithoutExtension(Application.ExecutablePath));
private void App_Load(object sender, EventArgs e){
if (!rotate.WaitOne(TimeSpan.Zero, true)){
MessageBox.Show("Program zaten açık.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
Application.Exit();
}
}