Activate a component by code?

Hello,

How can I active or desactivate a GH component by VB/C# ?

Dim comp As Grasshopper.Kernel.Special.GH_NumberSlider = ...
comp. xxx ( activate ) ?

Thanks in advance !
JL

If do you mean enable/disable a component, use comp.Locked = true/false.

That’s it, thank you !