Bill,
>I need the button to respond to each individual container depending on its security level. If 1 is R/O and the other is full I need the OK and Cancel buttons to be enabled. If both are Full I need the buttins enabled. If both are R/O (or none) I need then disabled.
In that case, it sounds like it would be best to dynamically call the appropriate SetAccessXXXX method on the buttons at run time. In the Init of the form, you can check the security level of the containers, and call the appropriate methods on the buttons.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com