c# - Winforms SplitterPanel, z-index of child overlap split -


i working splitterpanel in winforms on right hand side want custom dropdown list control displays 2 columns dropdown list.

the problem there being 2 columns want able have larger dropdown list area actual dropdown, , therefore overlap splitterpanel if list doesn't fit in split area.

i have tried using .bringtofront();, not work on splitterpanel , control hidden. come web background have used z-index stumped winforms. see below image of issue.

does know how can resolve this?

enter image description here

the z-index determine child controls sit higher , can overlap others child controls. never helps when want (real opposed drop downs or menues) child overlap own container. never happens; , since checkedlistbox child of split panel never overlap it.

you need make checkedlistbox sit not inside splitter panel in parent 'brethren'. let's assume splitcontainer sits in tabpage tabpage8. can show moving tabpage:

movectltotarget(tabpage8, checkedlistbox1); 

using function.

void movectltotarget(control target, control ctl) {     // screen location of control     point pt = ctl.pointtoscreen(point.empty);     // move same location relative target     ctl.location = target.pointtoclient(pt);     // add new controls collection     ctl.parent = target;     // move     ctl.bringtofront(); } 

as don't know how create , show it, resetting you. note no longer in split panel not move when move splitter..

you may want first time , later align combobox..


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -