Odd resizing of controls VB.NET
-
21-09-2019 - |
Question
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
Solution
Check the margin property for both controls. If it's non-zero, then your controls may take up more width than the form's.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow