none
What does it mean?

    Question

  •  Hello,

    I am new to C#, just i want to know what is the color words mean:


    -   private
    void okButton_Click(object sender, EventArgs e)

       {

         this.close();

       }

    - What about : this, true, case and catch....what can we call them?

    - What about : close and show...what can i call them?


    Thank you


    Yasser Jamil
    Monday, February 16, 2009 1:58 PM

Answers

  • Typically, the blue words are C# keywords (this, void, private etc.)

    Show and Close are methods on the object (in this case, it seems to be a Form derived object)

    Before you start doing WinForms development, you should learn the basics of C#.

    http://blog.voidnish.com
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:21 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Monday, February 16, 2009 2:40 PM
    Moderator
  • Yasseer,

    Welcome to C#. Well these blue words are C# Keywords (i.e. private , void , this etc)
    whereas the LightBlue work like EventArgs represent data types :)

    Good Luck on C#. Please feel free to ask further and don't forget to visit my blog at http://adilamughal.blogspot.com where you can get all the stuff related to .NET framework :)

    Adil Mughal - MCP - http://adilamughal.blogspot.com
    • Proposed as answer by Adil MughalMVP Monday, February 16, 2009 2:52 PM
    • Unproposed as answer by Yasser Jamil Monday, February 16, 2009 3:09 PM
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:21 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Monday, February 16, 2009 2:52 PM
  • I'd recommend C# by Jesse Liberty:

    See: http://www.amazon.com/Learning-C-2005-Started-Programming/dp/0596102097/ref=sr_1_4?ie=UTF8&s=books&qid=1234811291&sr=8-4

    I see that O'Reilly has a C# book in their Head-First series.
    I've not read that one, but I've enjoyed other Head-First books because they are easy to read and very informative.

    See: http://www.amazon.com/Head-First-C-Brain-Friendly-Guides/dp/0596514824/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1234811374&sr=8-1

    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:21 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Monday, February 16, 2009 7:09 PM
  • I second Jesse Liberty's book but the one linked to above is the C# 2.0 version. I'd get the C# 3.0 version :

    http://www.amazon.com/Programming-C-3-0-Jesse-Liberty/dp/0596527438

    http://blog.voidnish.com
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:21 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Monday, February 16, 2009 7:19 PM
    Moderator
  • Dear  Yasser,
    Well based on my personal experience, I would like to recommend couple of books here

    => Beginning C# 2008, Apress Foundation
    => Microsoft Visual C# 2008, Step by Step
    => CLR via C#, Jefrey Ritcher (Adv Level)

    (Y)


    Adil Mughal - MCP - http://adilamughal.blogspot.com
    • Proposed as answer by Adil MughalMVP Tuesday, February 17, 2009 4:58 PM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Tuesday, February 17, 2009 4:58 PM
  • Adil Mughal said:

    Dear  Yasser,
    Well based on my personal experience, I would like to recommend couple of books here

    => Beginning C# 2008, Apress Foundation
    => Microsoft Visual C# 2008, Step by Step
    => CLR via C#, Jefrey Ritcher (Adv Level)

    (Y)


    Adil Mughal - MCP - http://adilamughal.blogspot.com

    I would scratch the "Step by Step" book in favor of "Microsoft Visual C# 2008: The Language Reference" I think it is called.  You already have a "beginners' book on the list.  Those Microsoft "Step by Step" series can be outgrown too easily, making them not worth the cost.  And you should always have a language reference anyway.


    Mark the best replies as answers. "Fooling computers since 1971."
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:24 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Tuesday, February 17, 2009 5:24 PM
    Moderator
  • I'm a beginner c# programmer as well. I have found that John Sharp's Step by Step book is very helpful (MS Press). What I like about it over the others is all the sample code on the CD. If you do the samples that he suggests, you'll be better off than reading other books that just discuss the language. Have a few reference books, too, as the others suggest.

    You'll find that you won't be able to understand a concept until you read what two or three others have to say. Jesse LIberty's book on C# 3.0 (fifth addition) is a good reference to have, as is Herbert Schildt's Complete Reference.

    And, of course, write your apps. No matter how small they are, you'll grow your confidence. I wrote a simple one recently that just tells me how much my light bulbs, gas insert, and other home appliances have been costing me per hour, day or month. You can, too.

    Cheers,
    Toney
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:20 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Tuesday, February 17, 2009 7:17 PM

All replies

  • Typically, the blue words are C# keywords (this, void, private etc.)

    Show and Close are methods on the object (in this case, it seems to be a Form derived object)

    Before you start doing WinForms development, you should learn the basics of C#.

    http://blog.voidnish.com
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:21 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Monday, February 16, 2009 2:40 PM
    Moderator
  • Yasseer,

    Welcome to C#. Well these blue words are C# Keywords (i.e. private , void , this etc)
    whereas the LightBlue work like EventArgs represent data types :)

    Good Luck on C#. Please feel free to ask further and don't forget to visit my blog at http://adilamughal.blogspot.com where you can get all the stuff related to .NET framework :)

    Adil Mughal - MCP - http://adilamughal.blogspot.com
    • Proposed as answer by Adil MughalMVP Monday, February 16, 2009 2:52 PM
    • Unproposed as answer by Yasser Jamil Monday, February 16, 2009 3:09 PM
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:21 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Monday, February 16, 2009 2:52 PM
  • Hello Nishant,


    Is there any good book to start with ( basics in C# )?


    Thanks



    Yasser Jamil
    Monday, February 16, 2009 7:04 PM
  • I'd recommend C# by Jesse Liberty:

    See: http://www.amazon.com/Learning-C-2005-Started-Programming/dp/0596102097/ref=sr_1_4?ie=UTF8&s=books&qid=1234811291&sr=8-4

    I see that O'Reilly has a C# book in their Head-First series.
    I've not read that one, but I've enjoyed other Head-First books because they are easy to read and very informative.

    See: http://www.amazon.com/Head-First-C-Brain-Friendly-Guides/dp/0596514824/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1234811374&sr=8-1

    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:21 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Monday, February 16, 2009 7:09 PM
  • I second Jesse Liberty's book but the one linked to above is the C# 2.0 version. I'd get the C# 3.0 version :

    http://www.amazon.com/Programming-C-3-0-Jesse-Liberty/dp/0596527438

    http://blog.voidnish.com
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:21 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Monday, February 16, 2009 7:19 PM
    Moderator
  • Dear  Yasser,
    Well based on my personal experience, I would like to recommend couple of books here

    => Beginning C# 2008, Apress Foundation
    => Microsoft Visual C# 2008, Step by Step
    => CLR via C#, Jefrey Ritcher (Adv Level)

    (Y)


    Adil Mughal - MCP - http://adilamughal.blogspot.com
    • Proposed as answer by Adil MughalMVP Tuesday, February 17, 2009 4:58 PM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Tuesday, February 17, 2009 4:58 PM
  • Adil Mughal said:

    Dear  Yasser,
    Well based on my personal experience, I would like to recommend couple of books here

    => Beginning C# 2008, Apress Foundation
    => Microsoft Visual C# 2008, Step by Step
    => CLR via C#, Jefrey Ritcher (Adv Level)

    (Y)


    Adil Mughal - MCP - http://adilamughal.blogspot.com

    I would scratch the "Step by Step" book in favor of "Microsoft Visual C# 2008: The Language Reference" I think it is called.  You already have a "beginners' book on the list.  Those Microsoft "Step by Step" series can be outgrown too easily, making them not worth the cost.  And you should always have a language reference anyway.


    Mark the best replies as answers. "Fooling computers since 1971."
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:24 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Tuesday, February 17, 2009 5:24 PM
    Moderator
  • I'm a beginner c# programmer as well. I have found that John Sharp's Step by Step book is very helpful (MS Press). What I like about it over the others is all the sample code on the CD. If you do the samples that he suggests, you'll be better off than reading other books that just discuss the language. Have a few reference books, too, as the others suggest.

    You'll find that you won't be able to understand a concept until you read what two or three others have to say. Jesse LIberty's book on C# 3.0 (fifth addition) is a good reference to have, as is Herbert Schildt's Complete Reference.

    And, of course, write your apps. No matter how small they are, you'll grow your confidence. I wrote a simple one recently that just tells me how much my light bulbs, gas insert, and other home appliances have been costing me per hour, day or month. You can, too.

    Cheers,
    Toney
    • Proposed as answer by Harry Zhu Wednesday, February 18, 2009 7:20 AM
    • Marked as answer by Harry Zhu Monday, February 23, 2009 2:03 AM
    Tuesday, February 17, 2009 7:17 PM
  • Hello All,

    Thank you all fo the information, but what I am looking is Books in PDF format with CD (iso) for practice.
    All the above books are not pdf format.


    Thank you  
    Yasser Jamil
    Wednesday, February 18, 2009 3:43 PM