I have my own panel class ksClass and I want to insert a ksPanel in a form and the width of the ksPanel shold just be thw same as the width of the form !
private void Form1_Load(object sender, EventArgs e)
In the class I have this code:
Panel aPanel = new Panel
Location = new Point(0, 0),
Size = new Size(this.Parent.ClientSize.Width, 20),
BorderStyle = BorderStyle.FixedSingle
but gets an unhandled NullReferenceException !
How can I then set the width of my panel to the "width" of the form it's inserted on ?
Best regards KSor, Denmark
View Complete Post