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. inherited form

inherited form

Scheduled Pinned Locked Moved C#
question
8 Posts 4 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.
  • P Offline
    P Offline
    pampam110
    wrote on last edited by
    #1

    i am a begginer. so thanks if u answer my question in a simple way. i had a form and i wanna add an inherited form by write code. i dont know how?! and i dont know where the code should sit and placed!:thumbsup:

    []D @ []v[] []D @ []v[]

    W C 2 Replies Last reply
    0
    • P pampam110

      i am a begginer. so thanks if u answer my question in a simple way. i had a form and i wanna add an inherited form by write code. i dont know how?! and i dont know where the code should sit and placed!:thumbsup:

      []D @ []v[] []D @ []v[]

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      If you want to inherit a form from another form you do something like this (creates a new MyForm class inherited from System.Windows.Forms.Form):

      public class MyForm : System.Windows.Forms.Form {
      //Constructor, calls base constructor
      public MyForm() : base() { }

      ...
      }

      This seems like a good tutorial to start with: .NET Tutorial for Beginners[^]

      The need to optimize rises from a bad design.My articles[^]

      P 1 Reply Last reply
      0
      • P pampam110

        i am a begginer. so thanks if u answer my question in a simple way. i had a form and i wanna add an inherited form by write code. i dont know how?! and i dont know where the code should sit and placed!:thumbsup:

        []D @ []v[] []D @ []v[]

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Buy a book on C# and read it. However, what do you mean by 'add an inherited form by write code' ?

        Christian Graus Driven to the arms of OSX by Vista.

        P 1 Reply Last reply
        0
        • W Wendelius

          If you want to inherit a form from another form you do something like this (creates a new MyForm class inherited from System.Windows.Forms.Form):

          public class MyForm : System.Windows.Forms.Form {
          //Constructor, calls base constructor
          public MyForm() : base() { }

          ...
          }

          This seems like a good tutorial to start with: .NET Tutorial for Beginners[^]

          The need to optimize rises from a bad design.My articles[^]

          P Offline
          P Offline
          pampam110
          wrote on last edited by
          #4

          thanks mika, but i like to deal with someone like u to learn it better, if it's no problem. ;)

          []D @ []v[] []D @ []v[]

          W 1 Reply Last reply
          0
          • P pampam110

            thanks mika, but i like to deal with someone like u to learn it better, if it's no problem. ;)

            []D @ []v[] []D @ []v[]

            W Offline
            W Offline
            Wendelius
            wrote on last edited by
            #5

            These forums are to help people who for example get stuck with a specific problem. All people expect that the person who asks a question has the basic knowledge about the environment he/she is working with. Many times people are given links to shortcuts or books that are very useful, but after that it's expected that the person reads the given information and tries to learn the environment (C# in this case). So in short the purpose of these forums is not to educate people starting from beginning, but to help people with specific, clearly asked questions. I'm sure that if you read the document I posted, you'll get a good start to C# inheritance along with other fields of programming in C#. Also you should consider buying a good book or two. Think of it like an investment to yourself.

            The need to optimize rises from a bad design.My articles[^]

            P N 2 Replies Last reply
            0
            • C Christian Graus

              Buy a book on C# and read it. However, what do you mean by 'add an inherited form by write code' ?

              Christian Graus Driven to the arms of OSX by Vista.

              P Offline
              P Offline
              pampam110
              wrote on last edited by
              #6

              i mean create an inherited form in code with visual c# ....! i hope u understand what i say! :-D :thumbsup:

              []D @ []v[] []D @ []v[]

              1 Reply Last reply
              0
              • W Wendelius

                These forums are to help people who for example get stuck with a specific problem. All people expect that the person who asks a question has the basic knowledge about the environment he/she is working with. Many times people are given links to shortcuts or books that are very useful, but after that it's expected that the person reads the given information and tries to learn the environment (C# in this case). So in short the purpose of these forums is not to educate people starting from beginning, but to help people with specific, clearly asked questions. I'm sure that if you read the document I posted, you'll get a good start to C# inheritance along with other fields of programming in C#. Also you should consider buying a good book or two. Think of it like an investment to yourself.

                The need to optimize rises from a bad design.My articles[^]

                P Offline
                P Offline
                pampam110
                wrote on last edited by
                #7

                Thanks for ur advice. Certainly.

                []D @ []v[] []D @ []v[]

                1 Reply Last reply
                0
                • W Wendelius

                  These forums are to help people who for example get stuck with a specific problem. All people expect that the person who asks a question has the basic knowledge about the environment he/she is working with. Many times people are given links to shortcuts or books that are very useful, but after that it's expected that the person reads the given information and tries to learn the environment (C# in this case). So in short the purpose of these forums is not to educate people starting from beginning, but to help people with specific, clearly asked questions. I'm sure that if you read the document I posted, you'll get a good start to C# inheritance along with other fields of programming in C#. Also you should consider buying a good book or two. Think of it like an investment to yourself.

                  The need to optimize rises from a bad design.My articles[^]

                  N Offline
                  N Offline
                  Najmal
                  wrote on last edited by
                  #8

                  Nice Advice..... i will follow this....

                  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