Public Overrides ReadOnly Property Enabled() As Boolean Get Dim i As Integer For i = 0 To pMap.LayerCount - 1 If TypeOf pMap.Layer(i) Is IRasterLayer Then MyBase.m_enabled = True Exit For Else MyBase.m_enabled = False End If Next i Return MyBase.Enabled End Get End Property
Could you share the Itoolcontrol implementation that you have done.