|
|
 |
| C# 2005 For discussion of Visual C# 2005. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the C# 2005 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

May 16th, 2005, 07:02 PM
|
|
Authorized User
|
|
Join Date: May 2005
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
where is my System.Windows.Forms.MessageBox?
this is my very simple progam :
--------------------------------------
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
System.Windows.Forms.MessageBox.Show("");
}
}
}
I got this compilation error:
--------------------------------------------
Error 1 The type or namespace name 'MessageBox' does not exist in the namespace 'System.Windows.Forms' (are you missing an assembly reference?)
-------------------------------------
Anybody , any ideas ?
Thanks in advance.
Michael
|

May 17th, 2005, 02:27 AM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Location: Cochin, , India.
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi,
You have to add the reference to System.Windows.Forms.dll.
Prashant
|

May 29th, 2005, 10:21 PM
|
|
Authorized User
|
|
Join Date: May 2005
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
Thank you ,Prashant.
I think you are right.
Michael
|

November 14th, 2005, 03:38 AM
|
|
Registered User
|
|
Join Date: Oct 2004
Location: trenchtown, , Jamaica.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
why would you want a message box to appear in your console application although its just a namespace for your project ConsoleApplication2 i am assuming you are creating a console app. use windows application instead it will make more sense.
newbie
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |