>>>Hide the button or remove it using RemoveObject method.
>>
>>Isn't that breaking the OOP concept that Jim is talking about?
>
>Nope.
>
>I have a toolbar class where almost every button has a corresponding property to hide it. Say, lShowPrint would show print button, etc.
>
>So, in your form you would set up the visibility of the buttons according to your needs.
Jay -
The other possiblity is to have sub-classes. I have all of my forms come off a base form class. Then I have a report form class, sub-classed from my base form class, which has buttons to print, export, etc. Then all of my report screens are based off of this report form class.
HTH!
Carsten M. Thode