Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Creating Status/Progress window

Posted on 2008-10-05
8
Medium Priority
?
195 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 200 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

Technology Partners: 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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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

705 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