Windows Vista Forums

How do I force an update of the UI?

  1. #1

    Philippe Lavoie Guest

    How do I force an update of the UI?

    In my application,

    a list of products is initialized by doing a backgroud call (through the
    dispatcher). That list shows a picture of the product (specified as an
    URL). I apply some filtering to the list (setting a Status variable to
    'InView' 'Hidden' etc.).

    The problem is that sometimes the images do not show up. I have to click
    twice (i..e refresh the list twice with the same parameters to get the
    images to properly show up).

    How can I force the UI to recompute the layout? UpdateLayout doesn't
    seem to work 100%.



      My System SpecsSystem Spec

  2. #2

    Marcus Guest

    Re: How do I force an update of the UI?

    Have you tried the InvalidateMeasure(), InvalidateArrange() and the
    InvalidateVisual() functions...

    Those functions force either some part or the complete re-layout of the
    visual... Maybe this could help...

      My System SpecsSystem Spec

How do I force an update of the UI?

Similar Threads
Thread Forum
Force Vista Home Edition to use WSUS update server..
Hi, We have a few Windows Vista/XP Home edition computers which we would like to have forced windows updates through our WSUS server. Which...
Vista General
GE Force Go 6100
Hi, can anyone help me in finding the appropriate display driver update for my -- Hewlett Packard Compaq Presario F551AU notebook/laptop -- the...
n force?????
i have a nvdia 6150se nforce 430. when ever i say that, what is nforce? HP and Compaq Desktop PCs- Motherboard Specifications, MCP61PM-HM...
Graphic cards
Possible Fix: Microsoft Force Feedback 2 Joystick and the self center force disabling
Hello, I have a Microsoft Force Feedback 2 Joystick working with the Vista X64 Driver that comes built in. I noticed that games...
Vista hardware & devices
Force SP1 installation
As OEM partner we have received the RTM version of SP1. On my work PC I had to slipstream SP1 RC1 in order to install the Ultimate Version (long...
Windows Updates
G Force Go no Go!
I'm trying to install beta drivers from the nVidia web site for the GForce Go 6800 Ultra and the installation stops and says something to the effect...
Vista hardware & devices
How to force UIElement update in a Winform interop app?
I can only let it shown by drag the window to change the size. How to make it appear immediately after the window is load? Thanks!