How to get a tabbed dock bar object in RunCommand?

Hi,

I’ve got a tabbed dock bar woking. It is registered in the way the sample shows:

Now, I’d like to access an item in the dock bar in RunCommand function. How can I get the object?

Thanks,

Hi @takahashi-kazu,

When your panel is constructed, you might want to assign the instance to some variable on your plug-in (or somewhere) so you can access later…

// Set the user control property on our plug-in
MyPlugIn.Instance.Panel = this;

– Dale

Thanks @dale, seems it works.