ew.grey

How to access richedit (append text) on IDockableWindow from Add-in button?

Discussion created by ew.grey on Sep 16, 2010
Latest reply on Sep 21, 2010 by jhauck-esristaff
How to access richedit (append text) on IDockableWindow from Add-in button?
code below doesn't work....could anybody help?

     protected override void OnClick()
        {
            UID dockWinID = new UIDClass();
            dockWinID.Value = ThisAddIn.IDs.FarcMLZ;
            IDockableWindow dockWindow = ArcMap.DockableWindowManager.GetDockableWindow(dockWinID);
            dockWindow.Show(true);

            MessageBox.Show(dockWindow.Caption);

            if (dockWindow.IsVisible())
            {
               
                //if (dockWindow != null && dockWindow.ID.Compare(dockWinID))
                //{
                //    RichTextBox MlzRichText = dockWindow.UserData as RichTextBox;
                //    MlzRichText.AppendText("Mlz done...");
                //}
            }


        }

Outcomes