© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
7 replies
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);
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)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Some namespace and class questions..
C#CC# / help
4y ago
Class with same name as namespace
C#CC# / help
2y ago
✅ class library and exposing a type from another namespace
C#CC# / help
3y ago
✅ namespace and using keyword in C#
C#CC# / help
10mo ago