>>
>>First create a subclass of the progress bar by dropping it on a form. Otherwise, under runtime, if you try to add that object to a form, you will get an error.
>>
>Forgive me if I understand this wrong, but to add a ProgressBar to a form under runtime you can simply do this:
>
>Thisform.AddObject('oProgress1', 'olecontrol', 'MSComCtlLib.ProgCtrl')
>
>With Thisform.oProgress1
> .Height = 20
> .Left = 146
> .Top = 116
> .Width = 325
> .Visible = .T.
>EndWith
That is correct, this works under development license but gives an error under runtime only machines [this is a documented problem]. That is why you have to create a subclass of the progress bar then instaciate the form class the progress bar has been added to. I learned this the hard way - at least in VFP 6 SP 3 this causes an error.
Mark McCasland
Midlothian, TX USA