p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > .NET > Other .NET > General .NET
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 16th, 2005, 06:22 PM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old May 17th, 2005, 02:14 AM
Friend of Wrox
 
Join Date: Apr 2005
Location: Cochin, , India.
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

You have to add the reference to the System.Windows.Forms.dll.

Prashant

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old May 29th, 2005, 10:30 PM
Authorized User
 
Join Date: May 2005
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you ,Prashant

Michael

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
system.stackoverflowexception in system.windows.fo scheidel21 Pro VB.NET 2002/2003 2 May 18th, 2007 01:40 AM
error while referencing system.windows.forms.dll swati_joshi ASP.NET 1.0 and 1.1 Basics 1 March 28th, 2006 03:11 PM
where is my System.Windows.Forms.MessageBox? IZRAILEVICH1 C# 2005 3 November 14th, 2005 03:38 AM
System Windows Permission lpastor C# 0 July 9th, 2004 03:26 AM
messagebox in web forms nmohammadi ASP Forms 3 June 7th, 2003 12:58 PM



All times are GMT -4. The time now is 07:38 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc