C# Big Time Newbie

  • Thread starter Thread starter Timothy Taylor
  • Start date Start date
T

Timothy Taylor

Hello,

I'm a hardcore VB.NET programmer.

However i want to try to learn at least the basics of C#

But when i open C# the things that seem like they're simpler then baby food
seems impossible in C#.

Can somebody please give me some information on the basics of C# (the simple
stuff at least, like how to do a messagebox...)

msgbox and messagebox are unrecognized by visual studios in C#

Are they called something different or am i doing something wrong?

The simple line of messagebox.show says "'System.Windows.Forms.MessageBox'
does not contain a definition for 'show'"

The simple line of msgbox says "The name 'msgbox' does not exist in the
class or namespace 'CSharpAppDemo.Form1'"

What am i doing wrong?

Any other things that will help me out a little bit in at least learning the
simple things about C#?

Maybe some websites or tutorials??

Thanks a lot!

-Tim
 
CSharp is case sensitive, so MessageBox.Show() and MessageBox.show() are
different.

I highly recommend picking up a book like Beginning C# from Wrox press.

-Chris
 
Also note that the framework is the same for VB.NET and C# so a huge
percentage of the 'how do I' questions would be answered the same in either
environment.

Paul T.
 
It would also be helpful if you make use of the intellisense. You can
invoke it using <ctrl> + j

David

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Paul G. Tobey [eMVP]" <[email protected]>
| References: <[email protected]>
<#[email protected]>
| Subject: Re: C# Big Time Newbie
| Date: Mon, 6 Oct 2003 09:41:01 -0700
| Lines: 59
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: s2.instrument.client.aces.net 198.182.119.2
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:35259
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Also note that the framework is the same for VB.NET and C# so a huge
| percentage of the 'how do I' questions would be answered the same in
either
| environment.
|
| Paul T.
|
| | > CSharp is case sensitive, so MessageBox.Show() and MessageBox.show() are
| > different.
| >
| > I highly recommend picking up a book like Beginning C# from Wrox press.
| >
| > -Chris
| >
| > | > > Hello,
| > >
| > > I'm a hardcore VB.NET programmer.
| > >
| > > However i want to try to learn at least the basics of C#
| > >
| > > But when i open C# the things that seem like they're simpler then baby
| > food
| > > seems impossible in C#.
| > >
| > > Can somebody please give me some information on the basics of C# (the
| > simple
| > > stuff at least, like how to do a messagebox...)
| > >
| > > msgbox and messagebox are unrecognized by visual studios in C#
| > >
| > > Are they called something different or am i doing something wrong?
| > >
| > > The simple line of messagebox.show says
| "'System.Windows.Forms.MessageBox'
| > > does not contain a definition for 'show'"
| > >
| > > The simple line of msgbox says "The name 'msgbox' does not exist in
the
| > > class or namespace 'CSharpAppDemo.Form1'"
| > >
| > > What am i doing wrong?
| > >
| > > Any other things that will help me out a little bit in at least
learning
| > the
| > > simple things about C#?
| > >
| > > Maybe some websites or tutorials??
| > >
| > > Thanks a lot!
| > >
| > > -Tim
| > >
| > >
| >
| >
|
|
|
 
Back
Top