开发者

C# DLL Message Box

开发者 https://www.devze.com 2023-03-15 19:25 出处:网络
Is it possible to have a C# DLL open a message box? Like in a WinForm: MessageBox.Show(\"Message\"); I relise that DLL\'s 开发者_如何学Ccan\'t be executed directly but what if it were to be injecte

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

MessageBox.Show("Message");

I relise that DLL's 开发者_如何学Ccan'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).


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

Step2: use namespace using System.Windows.Forms;

0

精彩评论

暂无评论...
验证码 换一张
取 消