C# MessageBox To Front When App is Minimized To Tray

前端 未结 5 1520
离开以前
离开以前 2020-12-06 12:42

I have some code that popups a message box:

MessageBox.Show(this,
                 \"You have not inputted a username or password. Would you like to configur         


        
5条回答
  •  臣服心动
    2020-12-06 13:15

    I only needed this for testing, so if you don't mind being extra cheesy, MessageBoxOptions.ServiceNotification will do the trick...

            MessageBox.Show(message,
                "Error",
                MessageBoxButton.YesNo,
                MessageBoxImage.Exclamation,
                MessageBoxResult.OK,
                MessageBoxOptions.ServiceNotification);
    

提交回复
热议问题