Search code examples
c#classmessagebox

Show a message box from a class in c#?


How do you get a class to interact with the form to show a message box?


Solution

  • using System.Windows.Forms;
    ...
    MessageBox.Show("Hello World!");