MessageBox
In order to display MessageBox. I wish to know how to add user directive "using System.Windows.Forms;"
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Sep 17, 2014, 7:33 AM EDT
However, if you're doing this from a console application, you'll also need to add a reference to System.Wndows.Forms.dll as VS doesn't do this by default.
Right click on the project name in Solution Explorer, select Add Reference from the dropdownlist, navigate to the above named dll and OK it.
Posted Sep 17, 2014, 7:43 AM EDT