Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why Doesn't my form Update in VB6

Status
Not open for further replies.

bnhcomputing

IS-IT--Management
Jul 29, 2002
21
US

I have a VB6 application. It reads data from an ASCII file and updates an Access database via an ODBC connection using ADO. The application works great.

I added a form and some progress controls to inform the user as to what is happening. Sometimes the form is OK, but most of the time, the form is “Not Responding” and the text boxes and progress controls do not update although the program continues to execute correctly.

If I add the DoEvents statement inside my loop, the form always updates, but cannot be moved, minimized, or maximized. Without the DoEvents, the form is sizable, moveable, minimizable, etc., but it does not update.

Thanks in advance for any suggestions.

Hubert Hoffman
 

Been down that road. Progressbar.Refresh and Form.refresh. I put several of these statements throughout the loop. No change.

Any other ideas?
 
This might sound stupid but have you tried form1.refresh and DoEvents together. I use both in my while loop that use to hang up.
 

bnhcomputing, have you solved your problem? How?

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top