Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Basic question.

Basic question.

Scheduled Pinned Locked Moved C#
questioncsharp
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Taurian110
    wrote on last edited by
    #1

    Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)

    L D C R 4 Replies Last reply
    0
    • T Taurian110

      Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Take this documentation + some experience + google and you're done :) regards

      1 Reply Last reply
      0
      • T Taurian110

        Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        There is no manual that explains all this stuff. It's just put together from A LOT of experience and research. A lot of the code you see is dictated by how Windows works, which is documented here[^]. When the Windows API was written, it was done with C++ in mind, not the .NET Framework. So all the code and examples in the Platform SDK will be written in C++. You have to translate the code into whatever language you're using. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        L 1 Reply Last reply
        0
        • D Dave Kreskowiak

          There is no manual that explains all this stuff. It's just put together from A LOT of experience and research. A lot of the code you see is dictated by how Windows works, which is documented here[^]. When the Windows API was written, it was done with C++ in mind, not the .NET Framework. So all the code and examples in the Platform SDK will be written in C++. You have to translate the code into whatever language you're using. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Dave Kreskowiak wrote:

          So all the code and examples in the Platform SDK will be written in C++

          Huh? If you need C# documentation MSDN has everything you need.

          D 1 Reply Last reply
          0
          • T Taurian110

            Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)

            C Offline
            C Offline
            Colin Angus Mackay
            wrote on last edited by
            #5

            Taurian110 wrote:

            How do they know to do that? Is there a manual out there that I don't know about?

            My main source of information is reading articles, books[^], magazines (like MSDN Magazine[^], Software Development Magazine[^]), attending/organising user groups (Scottish Developers[^], Agile Scotland[^], eXtreme Wednesdays[^]), listening to DotNetRocks[^], and IT Conversations[^] I hope I've not left anything out. ColinMackay.net "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

            1 Reply Last reply
            0
            • L Lost User

              Dave Kreskowiak wrote:

              So all the code and examples in the Platform SDK will be written in C++

              Huh? If you need C# documentation MSDN has everything you need.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              I think you mis-understood what I was talking about. The C# documentation DOESN'T cover the Windows internals like the Platform SDK does. It covers stuff like, "to do this, write that". It doesn't cover why it works the way it does. For example, overriding WndProc. You can easily capture any and all window messages headed for your app and react to them, but the C# documentation doesn't go into what a window message is or how windows actually work. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              1 Reply Last reply
              0
              • T Taurian110

                Being new to C# I have always wondered, how do people know the following: Classes and there methods and what method is doing what? For eg: DataGridTextBoxColum > to achieve custom looks override the Paint method! How do they know to do that? Is there a manual out there that I don't know about? Or another good one: //To invoke the method used when user double click on column to resize! MethodInfo m = t.GetMethod("ColAutoResize", BindingFlags.Instance | BindingFlags.NonPublic); How do you know that? Who tells a person to go and get the information from? I would love to know all that can some one here solve this mystry please??? thakns :)

                R Offline
                R Offline
                Robert Rohde
                wrote on last edited by
                #7

                Another good resource are Reflector-like tools. If you don't understand what a special class does than you can just look into the code.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups