text box as counter window not updating until end of load 
Author Message
 text box as counter window not updating until end of load

I am loading a delimited text ascii file into a msflexgrid line by line,
updating a counter (integer : cnt=cnt+1) and displaying it in a text box. I
expected the textbox to count up but instead it gets updated when the load
is finished with the final total. The "text1.text = str$(cnt)" is definitely
in the "do while not eof(1) " loop.

Is there a "if you get time could you possibly update this textbox" flag
that i dont know about ???



Sun, 15 Jul 2001 03:00:00 GMT  
 text box as counter window not updating until end of load
Add a modified version of this line after the line that changes the Text in
the Box.

txtTextBox.Refresh



Sun, 15 Jul 2001 03:00:00 GMT  
 text box as counter window not updating until end of load
How 'bout a DoEvents
Quote:

>Add a modified version of this line after the line that changes the Text in
>the Box.

>txtTextBox.Refresh



Sun, 15 Jul 2001 03:00:00 GMT  
 text box as counter window not updating until end of load
The doevents does the job !

I've been away from programming for a bit - since when have commands in
programs started being ignored ? If i want to update a textbox i program it
to be updated and then VB comes along and gives me the 'you don't wanna do
that really do ya" - I have much still to learn !

Jus' Wunderin'

MikeR schrieb in Nachricht ...

Quote:
>How 'bout a DoEvents

>>Add a modified version of this line after the line that changes the Text
in
>>the Box.

>>txtTextBox.Refresh



Mon, 16 Jul 2001 03:00:00 GMT  
 text box as counter window not updating until end of load
think about what your prog does....

if it's in action it finishes it and then windows got time to REFRESH your
textbox (first the form, then the active control, then others...- this takes
time). if you want to give windows some more time to finish his work with it's
GUI, then put a DOVENTS into your code (which doesn't make it faster) OR you
just say the textbox to refresh:

text1.text = str$(cnt)
text1.refresh

if that doesn't work use me.refresh, it does it with da complete form.

yours,

mot

Quote:

> I am loading a delimited text ascii file into a msflexgrid line by line,
> updating a counter (integer : cnt=cnt+1) and displaying it in a text box. I
> expected the textbox to count up but instead it gets updated when the load
> is finished with the final total. The "text1.text = str$(cnt)" is definitely
> in the "do while not eof(1) " loop.

> Is there a "if you get time could you possibly update this textbox" flag
> that i dont know about ???



Mon, 16 Jul 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. not visible text box not updating database

2. update text box with a timer whilst editing same text box

3. *.ASP files are not reflecting updates until the server is restarted

4. Access2k ADODC update not reflected until 500ms later

5. Text Box Not Updating

6. Text Box not Updating when bound to a datasource

7. bound text box not updating

8. using VB text boxes data but not text boxes in word 2000

9. Counter Fields - value assigned on Addnew not Update?

10. Help Pausing VB4 execution until DOS app finishes (Not Windows App)

11. Displaying an incrementing counter in a text box

12. Text box does not update it's display until program is over.

 

 
Powered by phpBB® Forum Software