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. Visual Basic
  4. Custom made user control won't drop down in TableLayoutPanel, otherwise its perfect!

Custom made user control won't drop down in TableLayoutPanel, otherwise its perfect!

Scheduled Pinned Locked Moved Visual Basic
helpquestion
4 Posts 2 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.
  • B Offline
    B Offline
    binjafar
    wrote on last edited by
    #1

    Hi, i've made a control which is supposed to drop down on button click. it works perfect if i place it out of table layout, but if i drag drop it in a form with table layout panel... drop down doesnt show... possibly because of control's parent? OR z-order? any help will be appriciated.... thnx!

    H 1 Reply Last reply
    0
    • B binjafar

      Hi, i've made a control which is supposed to drop down on button click. it works perfect if i place it out of table layout, but if i drag drop it in a form with table layout panel... drop down doesnt show... possibly because of control's parent? OR z-order? any help will be appriciated.... thnx!

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

      I believe that the control is bound to its own 'cell' in the TableLayoutPanel. To test that, why not try dropping in a ComboBox, and see if that works properly?

      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.”

      B 1 Reply Last reply
      0
      • H Henry Minute

        I believe that the control is bound to its own 'cell' in the TableLayoutPanel. To test that, why not try dropping in a ComboBox, and see if that works properly?

        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.”

        B Offline
        B Offline
        binjafar
        wrote on last edited by
        #3

        Yes sure! every other control works normal if dropped on the table except for the custom made one. Question is... why doest it works well if dropped on a form ... but once you bring it inside a TableLayout... it does'nt!! my control uses TextBox, Button and a CheckedListBox that is shown on button click... all these items are inside a TableLayout whose Dock is set to fill and rows are set to Autosize. i've tried to '.BringToFront()' and things like that but no use... if it is bound to its own cell as u say... what to do next??? re-design without TableLayOut?? ahh...headache!!

        H 1 Reply Last reply
        0
        • B binjafar

          Yes sure! every other control works normal if dropped on the table except for the custom made one. Question is... why doest it works well if dropped on a form ... but once you bring it inside a TableLayout... it does'nt!! my control uses TextBox, Button and a CheckedListBox that is shown on button click... all these items are inside a TableLayout whose Dock is set to fill and rows are set to Autosize. i've tried to '.BringToFront()' and things like that but no use... if it is bound to its own cell as u say... what to do next??? re-design without TableLayOut?? ahh...headache!!

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

          If other dropdown type controls work correctly then the problem must lie in the way you have implemented the dropdown part of your control. I would suggest that you look for examples of combobox usercontrols, i.e. ones that do not inherit from ComboBox, to see how they do it.

          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