With this code I can change the width of a panel til the width of the form - the useable part of the form !
public partial class Form1 : Form
private void Form1_Load(object sender, EventArgs e)
Panel aPanel = new Panel();
aPanel.BorderStyle = BorderStyle.FixedSingle;
aPanel.Width = ClientSize.Width;
How can I do it the other way around = set the form width to the width of a panel ?
It seems like the ClientSize.Width is READ ONLY !
I can use
this.Width = aPanel.Width + 8;
but what is this spooky 8 ????
Best regards KSor, Denmark
View Complete Post