How to use own created MessageBox control in C# with Example
another Windows Form application
To ﬁnd your existing .cs ﬁles, right click on the project in your instance of Visual Studio, and click Open Folder in File
1. Visual Studio --> Your current project (Windows Form) --> Solution Explorer --> Project Name --> Right Click -->
Add --> Existing Item --> Then locate your existing .cs ﬁle.
2. Now there's one last thing to do in order to use the control. Add a using statement to your code, so that your
assembly knows about its dependencies.
using CustomMsgBox; //Here's the using statement for our dependency.
3. To display the messagebox, simply use the following...
CustomMsgBox.Show("Your Message for Message Box...","MSG","OK");