views:

33

answers:

1

Hi, I am interested to lock a ToolBarButton in .NET 1.1 so that property .Enabled = True is ignored. I have looked at the members of it and cannot find anything useful.

I have found Property Change Notification in my research and it seems to be available only in .NET 3.0. Have you implemented something similar before? Is there any workaround to achieve this?

Thank you very much. :-)

A: 

I have come up with a work-around, however it is not a lock behaviour.

I basically delete the ToolBarButton in the ToolBar.Buttons collection. So no matter whether it is enabled or not, the user is not able to click on it. :-)

Timothy Chung