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