简体   繁体   中英

C# listBox size less then should be

I have listBox and dataGridView in tableLayoutPanel . In editor their sizes looks same, but when I start application listBox height less then dataGridView . Both elements's dock property set to Fill .

In editor: 在此处输入图像描述

In fact: 在此处输入图像描述

How can I fix it?

Try setting the IntegralHeight property on the listbox to false

— @500-InternalServerError

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