I am using Microsoft Visual Studio Professional 2022. I'm creating forms programmatically adding content based on a JSON configuration, I need to set the size of the controls according to the configuration and this isn't working. In the debugger I can see the Height of a ListBox is 20, if I try to set the Height to 200 no error or exception occurs but the new value is not assigned.
I have added OnSizeChanged and added it to each control, I'm not sure what this is supposed to show me.
Can anyone help?
OnSizeChangedwill be invoked, so you can know who changes the height from the callstack.