I created access to the button objects when they are created.
They're not null, but when setting the Enabled property to true, the
buttons remain
grayed out.
Are you getting a valid button object? Is the Enabled property returning an
error?
I've found that especially in WordMail that even if a button object is a
valid object that most of its properties and methods aren't valid even in
the button Click event handler. In those cases I have to actually
reinstantiate the button object using FindControl and then I can set
properties such as Picture and Mask and set visibility and enabled.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> I created access to the button objects when they are created.
> They're not null, but when setting the Enabled property to true, the
> buttons remain
> grayed out.
roger@rogndeb.us - 24 May 2006 22:19 GMT
The return from the button.Enabled = true is true and button.Enabled =
false is false;
I will try using FindControl instead.
Ken Slovak - [MVP - Outlook] - 24 May 2006 22:44 GMT
Sure it's the right button in the right Inspector or Explorer?
In my wrapper classes for Inspectors or Explorers I can set Enabled and
Visible true or false based on business logic conditions and it works.
The only time I have to re-instantiate the button objects are in WordMail
Inspectors.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> The return from the button.Enabled = true is true and button.Enabled =
> false is false;
>
> I will try using FindControl instead.