Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# DLL Message Box

Tags:

c#

dll

messagebox

Is it possible to have a C# DLL open a message box? Like in a WinForm:

MessageBox.Show("Message");

I relise that DLL's can't be executed directly but what if it were to be injected into a process to be run, then it could show the message box (if it's possible).

like image 588
Bali C Avatar asked Jun 28 '11 16:06

Bali C


1 Answers

Step1: Click on Add Reference. Under .NET, Select System.Windows.Forms and click ok!

Step2: use namespace using System.Windows.Forms;

like image 145
InfantPro'Aravind' Avatar answered Sep 30 '22 01:09

InfantPro'Aravind'