Messagebox.Show

  • Thread starter Thread starter Lou
  • Start date Start date
L

Lou

How do I use Messagebox.Show in a dll.
It doesn't seem to work since i have no form?
-Lou
 
How do I use Messagebox.Show in a dll.
It doesn't seem to work since i have no form?
-Lou

You need to add a reference to System.Windows.Forms.dll.
 
Lou said:
How do I use Messagebox.Show in a dll.
It doesn't seem to work since i have no form?

From where are you calling the Dll method that displays the MessageBox?

Console application?
Forms App?
ASP.Net web page?

Regards,
Phill W.
 
From a vb class COMCLASS
If I try to do System.Windows; it won't let me!
the "Windows" doesn't enumerate in the intellisense?
 
Lou said:
How do I use Messagebox.Show in a dll.
It doesn't seem to work since i have no form?

In addition to the other replies, why not just use 'MsgBox'?
 
What do you mean, it won't let you? How did you add the reference
to your project?

Robin S.
------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top