I've currently got similar behaviour; when a window is minimised and then redisplayed, two buttons do not reappear - they in effect disappear. They only disappear on minimisation - if the window is burried beneath other windows and then revealed, the buttons do not disappear.
What's significant about these two buttons is that they are part of a custom control. The other subcontrol (a TreeView) within the custom control does get rendered when the window is redisplayed after minimisation, but these buttons don't. The custom control extendsUserControl; it does not have any custom display code, as its entire user interface comprises the tree view and the two buttons. The user interface for the custom control was built in Visual Studio 2008 design view.
The entire code relating to these two buttons in the 'Designer' file is as follows:
//
// ruleDeleteButton
//
this.ruleDeleteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.ruleDeleteButton.Location = new System.Drawing.Point(112, 335);
this.ruleDeleteButton.Name = "ruleDeleteButton";
this.ruleDeleteButton.Size = new System.Drawing.Size(75, 23);
this.ruleDeleteButton.TabIndex = 12;
this.ruleDeleteButton.Text = "Delete";
this.ruleDeleteButton.UseVisualStyleBackColor = true;
this.ruleDeleteButton.Click += new System.EventHandler(this.ruleDeleteButton_Click);
//
// ruleImportButton
//
this.ruleImportButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.ruleImportButton.Location = new System.Drawing.Point(193, 335);
this.ruleImportButton.Name = "ruleImportButton";
this.ruleImportButton.Size = new System.Drawing.Size(75, 23);
this.ruleImportButton.TabIndex = 13;
this.ruleImportButton.Text = "Import";
this.ruleImportButton.UseVisualStyleBackColor = true;
this.ruleImportButton.Click += new System.EventHandler(this.ruleImportButton_Click);
The VisibleChanged event of the custom control does not fire when the window is minimised and then redisplayed, so cannot be intercepted/handled. The Paint event does fire, but so far I have not managed to do anything in the Paint event handler which will cause these buttons to be rendered.
Any thoughts or solutions warmly welcomed.