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. How to Create Component in c#?

How to Create Component in c#?

Scheduled Pinned Locked Moved C#
7 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.
  • C Offline
    C Offline
    crrajaguru
    wrote on last edited by
    #1

    hi, i created component in c#. in this component having properties and methods, i add this component in another application as a toolbox item and drag into form. I see the properties of the component it having all of my properties but i give the value in properties window will not taken.. if i create object in form and give values manually it will take and run successfully. My Q? how to use properties window for user created component? pls help me soon..

    R RajaGuru

    M 2 Replies Last reply
    0
    • C crrajaguru

      hi, i created component in c#. in this component having properties and methods, i add this component in another application as a toolbox item and drag into form. I see the properties of the component it having all of my properties but i give the value in properties window will not taken.. if i create object in form and give values manually it will take and run successfully. My Q? how to use properties window for user created component? pls help me soon..

      R RajaGuru

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      well how are you creating your properties? should work if they like this...

      private string propertyString = "Default Value";

      public string PropertyString{
      get{return propertyString;}
      set{propertyString = value;}
      }

      Life goes very fast. Tomorrow, today is already yesterday.

      C 1 Reply Last reply
      0
      • C crrajaguru

        hi, i created component in c#. in this component having properties and methods, i add this component in another application as a toolbox item and drag into form. I see the properties of the component it having all of my properties but i give the value in properties window will not taken.. if i create object in form and give values manually it will take and run successfully. My Q? how to use properties window for user created component? pls help me soon..

        R RajaGuru

        M Offline
        M Offline
        musefan
        wrote on last edited by
        #3

        :mad: Did you mark my answer as 1???? if it didnt help thats one thing but you could atleast justify doing it. no ones going to answer your retard question if you dont even respond to suggestions!!! And in all fairness I did answer your question as what i gave you IS what is needed to...

        crrajaguru wrote:

        use properties window for user created component

        EDIT: Of course if it wasnt you that marked as 1 then this message can be ignored

        Life goes very fast. Tomorrow, today is already yesterday.

        T 1 Reply Last reply
        0
        • M musefan

          :mad: Did you mark my answer as 1???? if it didnt help thats one thing but you could atleast justify doing it. no ones going to answer your retard question if you dont even respond to suggestions!!! And in all fairness I did answer your question as what i gave you IS what is needed to...

          crrajaguru wrote:

          use properties window for user created component

          EDIT: Of course if it wasnt you that marked as 1 then this message can be ignored

          Life goes very fast. Tomorrow, today is already yesterday.

          T Offline
          T Offline
          Tom Deketelaere
          wrote on last edited by
          #4

          musefan wrote:

          Did you mark my answer as 1????

          Don't get to upset about it, there are a couple univoters around who will just vote everything a 1. And you'll always have people who don't respond. And I balanced it out a bit with a 'good answer' vote since it did answer his question (or what I believe his question is)

          M 1 Reply Last reply
          0
          • M musefan

            well how are you creating your properties? should work if they like this...

            private string propertyString = "Default Value";

            public string PropertyString{
            get{return propertyString;}
            set{propertyString = value;}
            }

            Life goes very fast. Tomorrow, today is already yesterday.

            C Offline
            C Offline
            crrajaguru
            wrote on last edited by
            #5

            i create property like as you.. my question is.. if use this component in other project to drag this component from toolbox to form and goto component properties the all properties displayed but i can't give values there.. if i give it will not taken in code... if i give in code it will taken

            R RajaGuru

            1 Reply Last reply
            0
            • T Tom Deketelaere

              musefan wrote:

              Did you mark my answer as 1????

              Don't get to upset about it, there are a couple univoters around who will just vote everything a 1. And you'll always have people who don't respond. And I balanced it out a bit with a 'good answer' vote since it did answer his question (or what I believe his question is)

              M Offline
              M Offline
              musefan
              wrote on last edited by
              #6

              ;)

              Life goes very fast. Tomorrow, today is already yesterday.

              H 1 Reply Last reply
              0
              • M musefan

                ;)

                Life goes very fast. Tomorrow, today is already yesterday.

                H Offline
                H Offline
                Henry Minute
                wrote on last edited by
                #7

                What's the betting he didn't put a setter in his code. Muppet! I've given you a 5 as well.

                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                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