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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. Work Issues
  4. Child is not a child control of this parant

Child is not a child control of this parant

Scheduled Pinned Locked Moved Work Issues
help
3 Posts 3 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.
  • K Offline
    K Offline
    kakanis
    wrote on last edited by
    #1

    Hi I created custom control for panel.My requirment is it accepet only one control in it,for this in oncontroladded i wrote the code if(controls.count>1) { controls.RemoveAt(1); } it is working but i am getting "Child is not a child control of this parant" please Help me

    P V 2 Replies Last reply
    0
    • K kakanis

      Hi I created custom control for panel.My requirment is it accepet only one control in it,for this in oncontroladded i wrote the code if(controls.count>1) { controls.RemoveAt(1); } it is working but i am getting "Child is not a child control of this parant" please Help me

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Please don't cross post. More importantly, why pick such a bizarre forum for cross posting? Did you even read the title?

      Deja View - the feeling that you've seen this post before.

      My blog | My articles

      1 Reply Last reply
      0
      • K kakanis

        Hi I created custom control for panel.My requirment is it accepet only one control in it,for this in oncontroladded i wrote the code if(controls.count>1) { controls.RemoveAt(1); } it is working but i am getting "Child is not a child control of this parant" please Help me

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        kakanis wrote:

        Child is not a child control of this parant

        True. This message does not properly befit this (parent) forum as it has been incorrectly posted.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

        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