C#C
C#3y ago
Di0n

✅ DialogResult and MessageBox in class (namespace)

Hi, I have a class library and wanted to know if its possible to add a dialog result and message box like the following:
DialogResult result = MessageBox.Show($"The maximum hours has been/will be reached for this employee {employee.GetName()}'s contract. Do you want to continue?", "Confirmation", MessageBoxButtons.OKCancel);

inside a class library (namespace)
Was this page helpful?