Table of Contents

Property FormDesignerControl

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

FormDesignerControl

Gets or sets an IFormDesignerControl related to this outline control.

public IFormDesignerControl FormDesignerControl { get; set; }

Property Value

IFormDesignerControl

Examples

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

using Alternet.FormDesigner.WinForms;

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

        var outlineControl = new OutlineControl();
        outlineControl.Dock = System.Windows.Forms.DockStyle.Fill;
        outlineControl.FormDesignerControl = formDesigner;
    }
}

Here is how to use a FormDesignerControl 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 formDesigner = New FormDesignerControl()
        formDesigner.AutoSaveToSource = False
        formDesigner.Dock = Windows.Forms.DockStyle.Left
        formDesigner.Parent = Me

        Dim outlineControl = New OutlineControl()
        outlineControl.Dock = Windows.Forms.DockStyle.Fill
        outlineControl.FormDesignerControl = formDesigner
    End Sub
End Class

Remarks

You can associate the Form designer with the OutlineControl object by setting FormDesignerControl property. This allows users to place components on the designer's surface, view its logical structure, and find controls that are deeply nested or hidden.