Screen "paint" after Restore
Forgive the somewhat newbie question, but I can't find the answer so...
I have a small application that has a LOT of labels on it (>100). When the program is running and is minimized and then restored, the screen seems to take a couple of seconds painting all of the fields. Is there a way to have it restore but be invisible and then just perform an action to make it visible? To make matters a little more complicated, I'm minimizing to the notification area. Could that have something to do with it?
Much thanks for your supremely patient and informative responses. :)
Re: Screen "paint" after Restore
That seems like an awful amount of labels. Are they all necessary? You can't combine any of them?
You can set the DoubleBuffered property of the form to True and that should help a little.
Re: Screen "paint" after Restore
I wonder how you fit that many controls on one form. One thing for sure is that it is a bad design if you needed those many controls in the first place.
Anyways, have you tried calling Me.Refresh in any appropriate method to force the controls to paint immediately?
vb.net Code:
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
Me.Refresh()
End Sub