Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How can I get Yes/No from a MessageBox in WPF?

$
0
0

Hi,

I have a MessageBox in WPF with C# an I will now ask wich Button was clicked...

            MessageBox.Show("Close Application?", "Question",
               MessageBoxButton.YesNo, MessageBoxImage.Warning);
How can I get wicht button was clicked?
Best Regards
Bernd

 


Viewing all articles
Browse latest Browse all 18858


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>