Access Form TextBox from another plugin

class MXPBridgeViewItemUserControl : ViewItemUserControl

Contains definition for …

this.textBoxOverlayLog = new System.Windows.Forms.TextBox();

How do I attain a reference to my textBoxOverlayLog from another

plugin (in same dll)?

The class in the other plugin is …

public class OverlayOnEventBackgroundPlugin : BackgroundPlugin

Or even from a different class in

the plugin that contains MXPBridgeViewItemUserControl?

Hi David,

One option would be to pass on a reference to your PluginDefinition class in the constructor for the BackgroundPlugin (which is called in the PluginDefinition class itself). That way it will be able to access the ViewItemPlugin which could then keep track of the ViewItemManagers it generates, each of these could again return the user control of that view item instance.

Best regards,

Peter