Access Textbox from Dockable Window from another class

Discussion created by kat87 on Nov 4, 2010
Latest reply on Nov 15, 2010 by jeffhamblin
I am trying to put some text in a textbox. This works fine, as long as my method is in the same class as my dockable window.
But now I want my method to be in another class.
I am able to get access to my dockable window
            UID dockWinID = new UIDClass();
            dockWinID.Value = ThisAddIn.IDs.newDockWindow;

            IDockableWindow dockWindow = ArcCatalog.DockableWindowManager.GetDockableWindow(dockWinID);

Now, I am searching something like
dockWindow.mytextbox.text = "new text";

But this one doesn't work, as my new class doesn't know mytextbox.

Does anyone know how I can access a Textbox from another class?