OK, here's the steps:
Open a class library
Create a new class based on the OLEControl class
From the Insert Object dialog, choose "Insert Control"
Select the MS Progress Bar control.
Now you're in the class designer. Add whatever properties you want.
Save changes
Open the form class.
Drop the new class *based* on the Progress Bar into the Form.
>John , thanks for your reply,, now let me tell you if this right
>I created the form and the ole control and I saved this as Myclass1.vcx
>now should I used this to Subclass the whole control or do I have to go to
>and twuike the Progress bar control itself..??
>
>;-)))
>
>thanks
>
>Mark Oliva
>
>>Have fun!
>>
>>>>
>>>>Subclass the Progress Bar, don't use the native control directly in the Form class, use the subclass. You can add properties to your hearts content to the Progress Bar subclass.
>>>>
>>>>
>>>
>>>OOooooorightyyyy thennn
>>>
>>>thanks I will do that
>>>
>>>Mark Oliva
>>>
>>>>>I am trying to create a simple form class with the Progress Bar Ole
>>>>>control, to help me out in understanding the benefit of the Class enviroment. Now I would like to add some new Properties to the class at design time but I do not seem to find how to do this..
>>>>>Can I do it thru the Class Browser or do I have to doit Pragmatically
>>>>>
>>>>>any help for this newbie to the wonderful world of Classess ...
>>>>>
>>>>>thanks
>>>>>
>>>>>Mark Oliva
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05