Click here to Skip to main content
15,879,095 members
Articles / Containers / Docker

Form Docker

Rate me:
Please Sign up or sign in to vote.
2.33/5 (4 votes)
23 Sep 2008CPOL2 min read 41.1K   823   21  
Form Docker is a class library (DLL) that can dock any form to different parts of the screen.
Public Class Form1
    Dim Docker As New FormDocker.FormDocker(Me, FormDocker.FormDocker.FormDockMode.TopRight, New Padding(5))

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Docker.DockForm()
        Docker.UndockForm()
        Docker.DockForm()
        Me.Text = Docker.ToString
    End Sub

    Private Sub Form1_Move(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Move
        Docker.Refresh()
    End Sub

    Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
        Docker.Refresh()
    End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Canada Canada
I am a hobby VB programmer.

Comments and Discussions