Using WinForms in C #, I'm struggling to correctly resize the inline user control. I can add it to the panel without any problems, and the panel will resize as I expect (and want).
To add a UserControl, I do the following:
content.Controls.RemoveAt(0); content.Controls.Add(c); content.Controls[0].Dock = DockStyle.Fill; content.Refresh();
I canβt figure out how to properly configure the newly added control, I also tried using Anchor with Top, Bottom, Left, Right, but to no avail. Any help would be appreciated, thanks.
source share