473,511 Members | 15,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Messagebox.Show

Lou
How do I use Messagebox.Show in a dll.
It doesn't seem to work since i have no form?
-Lou
Jan 18 '07 #1
7 1596
On 2007-01-18, Lou <lo********@comcast.netwrote:
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.

--
Tom Shelton
Jan 18 '07 #2
Lou wrote:
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.
Jan 18 '07 #3
Lou
Can't do that, it won't let me. I am trying to issue it from a COMCLASS

"Tom Shelton" <to*********@comcastXXXXXXX.netwrote in message
news:1t******************************@comcast.com. ..
On 2007-01-18, Lou <lo********@comcast.netwrote:
>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.

--
Tom Shelton

Jan 18 '07 #4
Lou
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?

"Phill W." <p-.-a-.-w-a-r-d@o-p-e-n-.-a-c-.-u-kwrote in message
news:eo**********@south.jnrs.ja.net...
Lou wrote:
>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.

Jan 18 '07 #5
"Lou" <lo********@comcast.netschrieb:
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'?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Jan 19 '07 #6
What do you mean, it won't let you? How did you add the reference
to your project?

Robin S.
------------------------------
"Lou" <lo********@comcast.netwrote in message
news:um**************@TK2MSFTNGP03.phx.gbl...
Can't do that, it won't let me. I am trying to issue it from a
COMCLASS

"Tom Shelton" <to*********@comcastXXXXXXX.netwrote in message
news:1t******************************@comcast.com. ..
>On 2007-01-18, Lou <lo********@comcast.netwrote:
>>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.

--
Tom Shelton


Jan 19 '07 #7
Lou
That's what I ended up doing.

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:uE**************@TK2MSFTNGP03.phx.gbl...
"Lou" <lo********@comcast.netschrieb:
>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'?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Jan 20 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
541
by: Rich Tasker | last post by:
I have a strange situation. A simple call to MessageBox.Show("XXX", "YYY") does not display the message in the messagebox with a visible font. Based on the content of the messagebox, the box...
2
30126
by: Dennis C. Drumm | last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am building a custom MessageBox dialog that has, among other things, a few new button options (yes to all, no to all, etc.)...
8
2432
by: Saso Zagoranski | last post by:
Hi! I'm trying to make my own MessageBox... What I would like to know is, how the MessageBox class is implemented? I could have something like: new MyMessageBox().ShowDialog(); but I would...
3
7410
by: Sin | last post by:
I'm currently evaluating VC.NET as the new platform for the company I work for and things are looking grim... We're up against another IDE which took me about 5 minutes to master and I've been...
0
4092
by: alex_f_il | last post by:
The class centers MessageBox inside the parent rectangle. Enjoy! using System; using System.Windows.Forms; using System.Text; using System.Drawing; using System.Runtime.InteropServices; ...
20
8859
by: Peter E. Granger | last post by:
I'm having a strange problem (or at least it seems strange to me) trying to display a MessageBox in a VC++ .NET forms application. If I put the call to MessageBox::Show in the form's .h file, it...
10
2324
by: Russ | last post by:
I've been trying to figure out how to show a simple messagebox with an OK button in my web client program (C#). I have looked at every reference to JScript and MessageBox that seemed even remotely...
3
2673
by: Kiyomi | last post by:
Hello, I use in my application MessageBox.Show and it works perfectly when I run this application on my local computer (http://localhost). When I diployed this application on the server,...
2
2548
by: Nuno Magalhaes | last post by:
Why does the MessageBox.Show function in the thread below changes the program behaviour, in other words, the APListView becomes filled with values with a call to RefreshAPListView. Without the...
1
4165
by: gewe | last post by:
I have a form (sizeable border, shows in taskbar, nothing unusual), which is the main form of my application (called MainForm). During an operation progress is shown in another form, that is shown...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.