This documentation is archived and is not being maintained.

InkEdit Constructor

Initializes a new instance of the InkEdit control.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

public InkEdit()

This C# example creates an InkEdit control, theInkEdit, in a Windows Form control.

using System;
using System.Windows.Forms;
using Microsoft.Ink;

namespace InkEditSample
{
    class InkEditSample : System.Windows.Forms.Form
    {
        private Microsoft.Ink.InkEdit theInkEdit;

        public InkEditSample()
        {
            theInkEdit = new InkEdit();
            theInkEdit.Parent = this;
            theInkEdit.Dock = DockStyle.Fill;
            theInkEdit.UseMouseForInput = true;
            theInkEdit.Enabled = true;
        }

        [STAThread]
        public static void Main()
        {
            Application.Run(new InkEditSample());
        }
    }
}

This Microsoft® Visual Basic® .NET example creates an InkEdit control, theInkEdit, in a Windows Form control.

Imports System
Imports System.Windows.Forms
Imports Microsoft.Ink

Public Class InkEditSample
    Inherits System.Windows.Forms.Form

    Private theInkEdit As Microsoft.Ink.InkEdit

    Public Sub New()
        theInkEdit = New Microsoft.Ink.InkEdit()
        theInkEdit.Parent = Me
        theInkEdit.Dock = DockStyle.Fill
        theInkEdit.UseMouseForInput = True
        theInkEdit.Enabled = True
    End Sub

    <STAThread()> Shared Sub Main()
        Application.Run(New InkEditSample())
    End Sub

End Class

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0
Show: