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. Windows Form Designer

Windows Form Designer

Scheduled Pinned Locked Moved C#
csswinformscomtutorialquestion
12 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.
  • N Nnamdi Onyeyiri

    Does anyone know how to make my control such that when it is displayed in the windows form designer, the grid does not appear over it??? [edit] oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly :mad: [/edit]


    :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
    :suss:"All programmers are playwrights and all computers are lousy actors."

    L Offline
    L Offline
    leppie
    wrote on last edited by
    #2

    Nnamdi Onyeyiri wrote: oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly You just need to implemenet an indexer :) We had plenty disscussions about that during the last week. Have a look at the CollectionEditor class for more details, I'm still trying to figure out how to add multiple types, it sure did look easy :) Cheers PS: Where have u been? Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

    N T 3 Replies Last reply
    0
    • L leppie

      Nnamdi Onyeyiri wrote: oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly You just need to implemenet an indexer :) We had plenty disscussions about that during the last week. Have a look at the CollectionEditor class for more details, I'm still trying to figure out how to add multiple types, it sure did look easy :) Cheers PS: Where have u been? Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

      N Offline
      N Offline
      Nnamdi Onyeyiri
      wrote on last edited by
      #3

      public class EBGroupCollection : CollectionBase
      public EBGroup this[int index]
      {
      get
      {
      return (EBGroup)this.List[index];
      }

      set
      {
       this.List\[index\] = value;
      }
      

      }

      public EBGroupCollection()
      {
      }

      public void Add(EBGroup value)
      {
      this.List.Add(value);
      }

      }


      :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
      :suss:"All programmers are playwrights and all computers are lousy actors."

      M 1 Reply Last reply
      0
      • N Nnamdi Onyeyiri

        public class EBGroupCollection : CollectionBase
        public EBGroup this[int index]
        {
        get
        {
        return (EBGroup)this.List[index];
        }

        set
        {
         this.List\[index\] = value;
        }
        

        }

        public EBGroupCollection()
        {
        }

        public void Add(EBGroup value)
        {
        this.List.Add(value);
        }

        }


        :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
        :suss:"All programmers are playwrights and all computers are lousy actors."

        M Offline
        M Offline
        Maciej Pirog
        wrote on last edited by
        #4

        I just don't get those strange indexers. Nnamdi Onyeyiri wrote: EBGroup this[int index] It looks like the good old C++'s operator[]

        Ñ There is only one MP Ð

        L 1 Reply Last reply
        0
        • M Maciej Pirog

          I just don't get those strange indexers. Nnamdi Onyeyiri wrote: EBGroup this[int index] It looks like the good old C++'s operator[]

          Ñ There is only one MP Ð

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #5

          Yes , the quote button is gone, they are the same :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

          N 1 Reply Last reply
          0
          • L leppie

            Yes , the quote button is gone, they are the same :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

            N Offline
            N Offline
            Nnamdi Onyeyiri
            wrote on last edited by
            #6

            that code is what i am using, and that code, is the code that isnt working ;P


            :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
            :suss:"All programmers are playwrights and all computers are lousy actors."

            L 1 Reply Last reply
            0
            • N Nnamdi Onyeyiri

              that code is what i am using, and that code, is the code that isnt working ;P


              :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
              :suss:"All programmers are playwrights and all computers are lousy actors."

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #7

              Oops, :) make sure the type you are adding has a default constructor, as allways :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

              N 1 Reply Last reply
              0
              • L leppie

                Nnamdi Onyeyiri wrote: oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly You just need to implemenet an indexer :) We had plenty disscussions about that during the last week. Have a look at the CollectionEditor class for more details, I'm still trying to figure out how to add multiple types, it sure did look easy :) Cheers PS: Where have u been? Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

                T Offline
                T Offline
                Tomas Petricek
                wrote on last edited by
                #8

                leppie wrote: We had plenty disscussions about that during the last week. ;)

                1 Reply Last reply
                0
                • L leppie

                  Oops, :) make sure the type you are adding has a default constructor, as allways :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

                  N Offline
                  N Offline
                  Nnamdi Onyeyiri
                  wrote on last edited by
                  #9

                  yer, it/they does/do. EBGroup is a class, with another collection, i dentical to the other one, except for EBItem [also a class]. can i not use classes?


                  :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
                  :suss:"All programmers are playwrights and all computers are lousy actors."

                  L 1 Reply Last reply
                  0
                  • L leppie

                    Nnamdi Onyeyiri wrote: oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly You just need to implemenet an indexer :) We had plenty disscussions about that during the last week. Have a look at the CollectionEditor class for more details, I'm still trying to figure out how to add multiple types, it sure did look easy :) Cheers PS: Where have u been? Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

                    N Offline
                    N Offline
                    Nnamdi Onyeyiri
                    wrote on last edited by
                    #10

                    leppie wrote: PS: Where have u been? what do you mean?????? [just noticed this bit]


                    :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
                    :suss:"All programmers are playwrights and all computers are lousy actors."

                    L 1 Reply Last reply
                    0
                    • N Nnamdi Onyeyiri

                      leppie wrote: PS: Where have u been? what do you mean?????? [just noticed this bit]


                      :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
                      :suss:"All programmers are playwrights and all computers are lousy actors."

                      L Offline
                      L Offline
                      leppie
                      wrote on last edited by
                      #11

                      Nnamdi Onyeyiri wrote: what do you mean Havent seen many posts from you lately, was just wondering? X| Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

                      1 Reply Last reply
                      0
                      • N Nnamdi Onyeyiri

                        yer, it/they does/do. EBGroup is a class, with another collection, i dentical to the other one, except for EBItem [also a class]. can i not use classes?


                        :suss: Email: theeclypse@hotmail.com   URL: http://www.onyeyiri.co.uk
                        :suss:"All programmers are playwrights and all computers are lousy actors."

                        L Offline
                        L Offline
                        leppie
                        wrote on last edited by
                        #12

                        Nnamdi Onyeyiri wrote: EBGroup is a class, with another collection, i dentical to the other one, except for EBItem [also a class]. can i not use classes? Yes you can! I would sugest you make a few small skeleton classes to see where the problem lies...start at the other container iow that 1st collection you mentioned. Good luck :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

                        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