There is a few ways you can do this. First if you do this at Form_Load, you probably create you ToolWindow there, and add it to the DockLayoutManager, so you can access the buttons directly from the instance of the ToolWindow.
If you want to access it in a later event, you can do it from the DockLayoutManager.
e.g.:
//Assuming I have a ToolWindow class named ToolButtons.
ToolButtons toolWindow = this.dockLayoutManager1.ToolWindows[ 0 ] as ToolButtons;
Button button = toolWindow.Controls[ 0 ] as Button;
You can also declare your ToolWindow as a private variable to the Form class, and access it has you need in the different events directly.
Imported from legacy forums. Posted by André (had 2601 views)