DockForms - A .Net library for creating dockable forms

Sun, Nov 18, 2007

This simple library helps you to create windows similar to the ones used in Photoshop.

DockForms - A .Net library for creating dockable forms

Example Usage:

Firstly, add a reference to DockForms.Dll, then add a Dock control to your form.

Now we need to create some dockable forms. Create a new class called DockForm1, and inherit DockForms.DockForm.

Public Class DockForm1
  Inherits DockForms.DockForm

  Public Sub New()
  End Sub
End Class

Go to the code for your main form and add the following:

For index As Integer = 1 To 3
  Dim df As New DockForm1
  df.Owner = Me
  df.Text = "Dock Form " & index.ToString
  Me.Dock1.AddForm(df, True)
Next index

Me.Dock1.SetDockTheme(New DockForms.DockThemes.BeOS)

And we’re done. This will add three dockable forms to your main form.

DockForms also contains a Theme Maker tool, which allows you to easily create themes, and even generates C#/VB code for you!

Download DockForms.Zip