WPF and C # pop-up windows

1

Good morning community,

I have a question, since C # with WPF it is possible to show messages to users who are using the application, ie send a message saying "Please leave the system" and show it to the users, regardless of the menu they have running .

PS: I know how to show messages according to action, look for a lot of documentation but I can not find anything that can help me.

Thank you very much for your contributions.

    
asked by Brian Velez 12.10.2018 в 23:37
source

1 answer

1

You can use the clase MessageBox , here an example:

        MessageBoxResult result = System.Windows.MessageBox.Show("Mensaje de Alerta","Titulo de Alerta", MessageBoxButton.OKCancel);

The variable result gets the value of the action taken by the user in messageBox , these actions are defined by Enum MessageBoxButton , which for this example only shows Ok and Cancel .

Greetings, I hope you serve

    
answered by 13.10.2018 в 00:52