I think the long title of my question covers it. Just in case it does not:
In a Windows desktop application, you can pop up a message box after a user clicks a button