# White flash when changing windows

**URL:** <https://forum.xojo.com/t/white-flash-when-changing-windows/84092>\
**Category:** Windows\
**Created:** [January 29, 2025, 4:08pm UTC](https://forum.xojo.com/t/white-flash-when-changing-windows/84092 "2025-01-29T16:08:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Gordon](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/898d66/32.png) [@Bob\_Gordon](https://forum.xojo.com/u/Bob_Gordon)\
**Post date:** [January 29, 2025, 4:08pm UTC](https://forum.xojo.com/t/white-flash-when-changing-windows/84092/1 "2025-01-29T16:08:44Z")

</div>

A touch screen app has multiple windows that completely fill the screen.

User taps a button and another window appears. The problem is that the screen goes completely white for a second to two (it’s very noticeable).

Is this normal behavior? What’s the correct way to do this?

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [January 29, 2025, 4:21pm UTC](https://forum.xojo.com/t/white-flash-when-changing-windows/84092/2 "2025-01-29T16:21:29Z")

</div>

Have you run code profiling to see if the Opening event is perhaps taking too long?

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [January 29, 2025, 4:22pm UTC](https://forum.xojo.com/t/white-flash-when-changing-windows/84092/3 "2025-01-29T16:22:47Z")

</div>

The other known cause that comes to mind is having a large number of controls on the Window, but that tends to come with other telltale signs (you end up seeing each control pop into view one at a time).

---

<div class="post-metadata">

**Author:** ![Bob\_Gordon](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/898d66/32.png) [@Bob\_Gordon](https://forum.xojo.com/u/Bob_Gordon)\
**Post date:** [January 29, 2025, 4:52pm UTC](https://forum.xojo.com/t/white-flash-when-changing-windows/84092/4 "2025-01-29T16:52:39Z")

</div>

There are 12 pictures, a background canvas and 8 buttons.

Is there a way of having the window get set up while invisible or off the screen and then make it visible?

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [January 29, 2025, 5:21pm UTC](https://forum.xojo.com/t/white-flash-when-changing-windows/84092/5 "2025-01-29T17:21:52Z")

</div>

> [@Bob\_Gordon](#):
>
> There are 12 pictures, a background canvas and 8 buttons.

I wouldn’t expect that to be too many, perhaps not the issue.

> [@Bob\_Gordon](#):
>
> Is there a way of having the window get set up while invisible or off the screen and then make it visible?

Try turning ImplicitInstance=false and Visible=false. You may be able to get an overloaded Opening event to fire before the Window is visible. This is an untested suggestion (I dont actually keep everything in the noggin, I usually test before posting if I can).

I would suggest turning on Code Profiling to see if the debugging tools we have can take the guesswork out of finding what’s being slow.
