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
SchuttendAsked:
Who is Participating?
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
I haven't code in VB6 in awhile...but I'm pretty sure you need to set the MultiLine() Property of your TextBox to True.

0
 
Éric MoreauSenior .Net ConsultantCommented:
after having set the .text property, call "DoEvents" to let VB repaint the screen.
0
 
SchuttendAuthor Commented:
But how I call this from within vb6?

Call Doevents

does not work

Regards,
Dennis
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
Éric MoreauSenior .Net ConsultantCommented:
text1.text="function 1 running"
DoEvents
0
 
SchuttendAuthor Commented:
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
0
 
Éric MoreauSenior .Net ConsultantCommented:
insert CR/LF character:

Text1.text=Text1.text & vbcrlf & "new message"
0
 
SchuttendAuthor Commented:
Hi,

This does not work. Please attached pic...

Regards,
Dennis
status.jpg
0
 
SchuttendAuthor Commented:
Hi..Sometimes the solution is that simple. Thanks!

Regards,
Dennis
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.