Solved

Creating Status/Progress window

Posted on 2008-10-05
8
193 Views
Last Modified: 2011-10-19
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
0
Comment
Question by:Schuttend
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 22644815
after having set the .text property, call "DoEvents" to let VB repaint the screen.
0
 

Author Comment

by:Schuttend
ID: 22644841
But how I call this from within vb6?

Call Doevents

does not work

Regards,
Dennis
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 22644861
text1.text="function 1 running"
DoEvents
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Author Comment

by:Schuttend
ID: 22644899
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
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 22645001
insert CR/LF character:

Text1.text=Text1.text & vbcrlf & "new message"
0
 

Author Comment

by:Schuttend
ID: 22645027
Hi,

This does not work. Please attached pic...

Regards,
Dennis
status.jpg
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 50 total points
ID: 22645088
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
 

Author Closing Comment

by:Schuttend
ID: 31503179
Hi..Sometimes the solution is that simple. Thanks!

Regards,
Dennis
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month10 days, 19 hours left to enroll

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question