Window not updating till after it is shown.

sarge

New member
Joined
Jan 19, 2017
Messages
2
Programming Experience
10+
I have a window that we show from time to time.

Before showing this window, I will set properties on the controls (change text on labels, change visibility on controls, etc...)

The first time the window is shown, everything looks great. We then hide the window (we do not close it out due to specific reasons)

The next time I show the window, before showing the window I will set all the controls back to their defaults. Then I will call the Window.show

When the window comes up, for a brief split second (not always, but most times) the window will appear as it did right before it was hidden, but then change over back to the default settings as it should. Looks very unprofesional.

I have tried InvalidateVisual and UpdateLayout prior to calling show, but nothing seems to work.

Is there anything I can due so that it paints properly when I call a show?
 
Back
Top Bottom