I have created a very simple application using C# 2005 Windows Forms.
It contains only one panel.
this.mainPanel.Location = new System.Drawing.Point(12, 12);
this.mainPanel.Name = "mainPanel";
this.mainPanel.Size = new System.Drawing.Size(177, 197);
this.mainPanel.Visible = true;
If I check the panel visibility at this point, it contains true. Great! Nevertheless, after I add this panel to the main form, the visibiliy gets set back to false.
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(201, 220);
If I now check this.mainPanel.Visible its equal to false.
In addition, I try to set this panel to true in other parts of the code and I can't. I do "this.mainPanel.Visible = true" and it does not work.
Thanks in advance for your help.