Odd resizing of controls VB.NET
-
21-09-2019 - |
문제
I have a listbox and a panel. In my forms resize event, my listbox is always form1.width * 0.5 and then the panel is also, but it doesnt work very well. I They overlap at a certain point but in theory, they never should. Is there something wrong with my logic?
Thanks
해결책
Check the margin property for both controls. If it's non-zero, then your controls may take up more width than the form's.
제휴하지 않습니다 StackOverflow