Hi, First of all: What do you mean by "VB6 dies"? Second :some times ago when I 've used some data controls seemed like the VB6 colapsed and the open project seemed to Die too. Well it was some OCX I 've used which had a definition for a controll underthe same name with other used OCXs. So one thing to check:look what have you includen in your project; another thing is do you face that even after including progress bar it does 'nt seem to work at all then take a look at the sample code: { sub my_sub dim dyn as recordset, db as database dim i as integer set db=opendatabase("c:\db\db.mdb") set dyn=db.openrecordset("Select * from table",dbopendynaset) if not (dyn.eof and dyn.bof) then dyn.movelast progressbar1.maxvalue=dyn.recordcount ' this sets the maximum value of progress bar dyn.movefirst end if while not dyn.eof i=i+1 'do something here - place your code here progressbar.value=i 'this is to asign a new value to be displaied progressbar.refresh 'to make visible t
If you dont have service pack 3 for VB6 get it. This solves a lot of problems with common control.
Second make sure that you havent accidentilly registed an older verion of the common controls ... either instead of ... or as well as mccomctl.Next... try adding mscomctl as a component of an empty project to see if you get the same problem.
Next ... try adding mscomctl as a component with no project open.
If all else fails ... reinstall Service Pack 3 ... this should replace the version of mscomctl on your machinge with the latest version - chances are at this stage that your component is corrupted some how.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
VB6 using a progress bar