Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2005

Tip: Looking for answers? Try searching our database.

messagebox.show produces error???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dan - 22 May 2005 14:08 GMT
I am using Visual Studio .net 2003 (C#)

I have a line of code like:
messagebox.show("Hello");

I get the erorr message "The type or namespace name 'messagebox' could not
be found (are you missing a using directive or an assembly reference?)
"

MessageBox.Show("Hello"); Does NOT product the error.

Also, normally, I get a dropdown list of available commands, but after
typing messagebox. , nothing appears.

Anybody know what's going on?
Peter van der Goes - 22 May 2005 14:49 GMT
>I am using Visual Studio .net 2003 (C#)
>
[quoted text clipped - 11 lines]
>
> Anybody know what's going on?

Previous experience with VB, perhaps?
As C# is case-sensitive, why would you expect messagebox to be accepted in
place of the correct MessageBox?
If you are migrating from VB, where incorrect case is automatically
corrected if the typed identifier is recognized, you'll need to get used to
case-sensitivity. You will get the dropdown intellisense list, but only if
you spell the qualifying identifier correctly.

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.

Dan - 22 May 2005 14:55 GMT
That did it!
And you are correct, I've been using Visual Basic and am new to C#.

>>I am using Visual Studio .net 2003 (C#)
>>
[quoted text clipped - 20 lines]
> to case-sensitivity. You will get the dropdown intellisense list, but only
> if you spell the qualifying identifier correctly.
Peter van der Goes - 22 May 2005 15:31 GMT
> That did it!
> And you are correct, I've been using Visual Basic and am new to C#.

Well, welcome to the C family of programming languages!
If you have additional questions on C#, you may get better results using the
C#-dedicated newsgroup:

microsoft.public.dotnet.languages.csharp

The group names are a bit confusing at first, but this group (.vc) is for
C++. When you decide to try C++, this would be a good place for questions.

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.