TaibaDXB
asked on
How to make User Control always on top ?
I have a user control and it has one janus combo box. While dropping down the combo I increased the Height of the user control to show some other controls below the combo box.
Its working fine, but the problem is : if I place the UC inside any panel or group box the User Control hiding inside the parent control. Its not always on top.
I tried in Designer that right clicking on the controls and Bring to Front
and also by code.( this.BringtoFront())
How can I bring the User control always on top..?
Please help me. Thanks!
Its working fine, but the problem is : if I place the UC inside any panel or group box the User Control hiding inside the parent control. Its not always on top.
I tried in Designer that right clicking on the controls and Bring to Front
and also by code.( this.BringtoFront())
How can I bring the User control always on top..?
Please help me. Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
AutoSize() property of the GroupBox messes up the sizing. So I simply manually increase the size of the container and set the Anchor property correctly. Now its working fine! Thanks :)
Open in new window