[dba-VB] VS2008: ProgressBar displays on XP, not on Vista

Shamil Salakhetdinov shamil at smsconsulting.spb.ru
Mon Sep 15 05:16:23 CDT 2008


Hi Gustav,

Try this "trick":

System.Windows.Forms.Application.DoEvents();

--
Shamil

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Monday, September 15, 2008 1:05 PM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] VS2008: ProgressBar displays on XP, not on Vista

Hi all

I run a simple routine copying data between three databases in six steps.
This lasts for about two minutes; in between a ProgressBar is advanced. 
This works fine when the app runs under WinXP, but under Vista 32-bit with
the Aero interface either nothing happens or the ProgressBar updates once at
some random step.

The general advice is to use the BackgroundWorker for such tasks like the
series of updates, but I'm lazy and wonder if a small trick can bring the
ProgressBar to the surface and update under Vista as well.
Any hints?

/gustav


_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com




More information about the dba-VB mailing list