Ajusting Control Width and Height programmatically

1 week ago 8
ARTICLE AD BOX

I am using Microsoft Visual Studio Professional 2022. I am creating forms programmatically adding content based on a JSON configuration, I need to set the size of the controls accordig 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?

Read Entire Article