Table of Contents

Property Toolbox

Namespace
Alternet.FormDesigner.WinForms
Assembly
Alternet.FormDesigner.v9.dll

Toolbox

Gets or sets toolbox control associated with the outline control.

public IToolboxControl Toolbox { get; set; }

Property Value

IToolboxControl

Examples

Here is how to use a Toolbox in the C# code:

using Alternet.FormDesigner.WinForms;

public partial class Form1 : Form
{
    private void Form1_Load(object sender, EventArgs e)
    {
        var toolboxControl = new ToolboxControl();
        toolboxControl.Parent = this;
        toolboxControl.Dock = System.Windows.Forms.DockStyle.Left;

        var outlineControl = new OutlineControl();
        outlineControl.Dock = System.Windows.Forms.DockStyle.Right;
        outlineControl.Toolbox = toolboxControl;
    }
}

Here is how to use a Toolbox in the Visual Basic code:

Imports System
Imports Alternet.FormDesigner.WinForms

Partial Public Class Form1
    Inherits Form
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim toolboxControl = New ToolboxControl()
        toolboxControl.Parent = Me
        toolboxControl.Dock = Windows.Forms.DockStyle.Left

        Dim outlineControl = New OutlineControl()
        outlineControl.Dock = Windows.Forms.DockStyle.Right
        outlineControl.Toolbox = toolboxControl
    End Sub
End Class

Remarks

You can associate the ToolboxControl with the OutlineControl object by setting Toolbox property.

OutlineControl can use images from the associated ToolboxControl to paint components displayed on the designer's surface.