Link to home
Start Free TrialLog in
Avatar of Schuttend
Schuttend

asked on

Creating Status/Progress window

Hi,

My code consists out of different kind of functions. I would like to keep the user informed which function is running at that moment.
What I did it setup a text field and update this text field which every progress. Like
text1.text="function 1 running"
text1.text="function 2 running"
etc

However this text window is not updated instantly. It has a huge delay. Does somebody know a solution?

Regards,
Dennis
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

after having set the .text property, call "DoEvents" to let VB repaint the screen.
Avatar of Schuttend
Schuttend

ASKER

But how I call this from within vb6?

Call Doevents

does not work

Regards,
Dennis
text1.text="function 1 running"
DoEvents
I last question on this subject..

How can I update the textfile without losing previous information?

first message:
function 1 running

second one:
function1 running
function 1 finished

Text1.text=Text1.text & "new message"
does work a bit but the new message needs to be placed on the next line..

Regards,
Dennis
insert CR/LF character:

Text1.text=Text1.text & vbcrlf & "new message"
Hi,

This does not work. Please attached pic...

Regards,
Dennis
status.jpg
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi..Sometimes the solution is that simple. Thanks!

Regards,
Dennis