Image in MDI title bar

Docking/MDI for Windows Forms Forum

Posted 18 years ago by Raymond Ng
Avatar
Is it feasible to display a background image in the toolwindow's title bar?

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Absolutely... in most DockRenderer implementations there is a DockContainerTitleBarActiveBackgroundFill propety that controls the background for active title bars and a related inactive property as well.

To use them in code, you can cast them to whatever renderer you are using. So for instance, in the DockForm sample, it defaults to the VS 2005 renderer so this line at the end of the constructor works:
((VisualStudio2005DockRenderer)dockManager.DockRenderer).DockContainerTitleBarActiveBackgroundFill = 
    new ImageBackgroundFill(Image.FromFile(@"C:\bg.gif"));


Actipro Software Support

The latest build of this product (v24.1.0) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.