mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Single instance warning message now always on top of the main app window when "always on top" is enabled
This commit is contained in:
parent
b475ba9931
commit
569e05dbf2
1 changed files with 4 additions and 1 deletions
|
|
@ -33,7 +33,10 @@ static void Main()
|
|||
}
|
||||
else
|
||||
{
|
||||
DialogResult dialogResult = MessageBox.Show(PublicVar.appName + " is already running.\nDo you still want to open a new copy of the app?", PublicVar.appName, MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
|
||||
DialogResult dialogResult = MessageBox.Show(
|
||||
PublicVar.appName + " is already running.\nDo you still want to open a new copy of the app?",
|
||||
PublicVar.appName, MessageBoxButtons.YesNo, MessageBoxIcon.Warning,
|
||||
MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly);
|
||||
if (dialogResult == DialogResult.Yes)
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
|
|
|
|||
Loading…
Reference in a new issue