简体   繁体   中英

c# Custom Control Listview over panel

I have a custom control in winform, which is a search textbox. It has a listview under it and whenever the user starts to type on the textbox listview is populated with the possible matches. Listviews height is change according to the number of items in listview.

The custom control is placed into a form , where there is a panel in the middle. Whenever the listview expands , the part of listview that should go over panel is going behind, where user is unable to read the items , because panel is blocking it.

Is there a way to make listview to go over the panel ? thanks

panel.SendToBack();

要么

customControl.BringToFront();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM