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
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
after having set the .text property, call "DoEvents" to let VB repaint the screen.
ASKER
But how I call this from within vb6?
Call Doevents
does not work
Regards,
Dennis
Call Doevents
does not work
Regards,
Dennis
text1.text="function 1 running"
DoEvents
DoEvents
ASKER
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
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"
Text1.text=Text1.text & vbcrlf & "new message"
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi..Sometimes the solution is that simple. Thanks!
Regards,
Dennis
Regards,
Dennis