Re: refreshing the screen

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Scott Swigart (scott_at_3leaf.com)
Date: 11/02/04


Date: Tue, 2 Nov 2004 08:16:34 -0800

The "easy" way is to call doevents regularly during your 10 minute process
(say, once per second, if possible).

Another way is to do your long running process in a background thread. Look
into the Thread class. Here's an example from another post:

http://groups.google.com/groups?q=swigart+thread&hl=en&lr=&safe=off&selm=uoA6YaSvEHA.680%40TK2MSFTNGP10.phx.gbl&rnum=1

"Art" <Art@discussions.microsoft.com> wrote in message
news:B5BE764A-B569-4D4F-A7B8-8E1B03BA8EB9@microsoft.com...
> I've got a program that I run -- it's under the control of a form. Part
> of
> the process is fairly lengthy (10 minutes). The form has a control that
> lets
> me know how far it's gotten.
>
> My problem is that if I switch to, say, e-mail and then try to get back to
> my form it will not appear until it finishes the lengthy step.. When I
> update the control (with the status) I tell the form to refresh. Is there
> something else I need to do so that I can switch away from the application
> and then go back to it again and see the status?
>
> I'd appreciate any suggestions.
>
> Art



Relevant Pages

  • Re: sparking/electrical problem with Peco points
    ... compromise your operation in order to keep locos away from each other. ... What I then said was that without an isolating section, ... is compromised by the control system. ... on/off using a switch on a control panel. ...
    (uk.rec.models.rail)
  • Re: Hardince HC Chucker -- someone needs help
    ... the bottom of the control box. ... Keep the coolant switch and wire the VFDs aux output to the ... Hardinge parts are available..usually..from Hardinge or scrap ... NRA LOH & Patron Member, Golden Eagle, Patriot's Medal. ...
    (rec.crafts.metalworking)
  • Re: Speech recognition system for Home automation.
    ... simply map to the hard switches, for dual voice/finger control. ... self contained in a voice chip, ... button keypad would need room for 40 voice commands (5 per switch) ... And as much as I like INSTEON (and use it, ...
    (comp.home.automation)
  • Re: [alsa-devel] [PATCH] ASoC: Add new TI TLV320AIC3204 CODEC driver
    ... I can't help but think that this'd be more legible with switch ... already tight for displaying register dumps via debugfs, ... I suspect that fixing the control may break what you're doing here? ... so is the DAC audio path routing. ...
    (Linux-Kernel)
  • Re: Useless UK police get their just deserts.
    ... The remote control in question would be one that controls a 3-pin ... I want to switch a small water pump on and off via the PC. ... buy a remotely controlled 13 amp socket, ... But that comes with its own remote control, as for a TV or VHS. ...
    (uk.legal)