>Hi Jim!
>
>Thank you for your suggestion. I tested it, and there is a problem. VFP send an error message, that "Object class is invalid for this container". After it I tried a Toolbar in pageframe. The problem with this, that at runtime ActiveX controls (I test it with Statusbar and Slider) only became visible, when I click on them. (More precisely: on their empty place.) I made a toolbar class and a pageframe class with it. At run time I issue
>oMyObject=AddObject("MyPageFrame","MyPageFrame")
>oMyobject.MyToolbar.Visible=.t.
>
>Other object on the toolbar, like textboxes became visible at once, except ActiveX controls.
>
>What did I go wrong?
>
>BB
Bela,
I just tried and _screen will not accept an OLEControl class.
I then made a fomr, put in a pageframe, put the Progressbar control in Page1 and ran teh fomr. I saw the progressbar fine, of course it didn't do anything because I didn't tell it to, but it was there and visible.
You are aware that when you programmatically add things to a container. like a pageframe's page, you must explicitly set its visible property to .T.?