A way to use MessageBox.Show in C# method

Hi experts, I need to use MessageBox in C# method as below: MessageBoxResult result = MessageBox.Show(messageBoxText, caption, button, icon); But, I get an error message. "The name 'MessageBox' does not exist in the current context." Would you help me know how to do it? Thank you.
Parents Reply Children
No Data