TouchToolKit for WinForms | ComponentOne
Magnify Component / Magnify Events / Posting a Message when Magnifier Window Moves
In This Topic
    Posting a Message when Magnifier Window Moves
    In This Topic

    Posting Message when the Magnifier Window Moves

    You can use the C1Magnify.MessageWhenMove property to post a message to the attached control when the Magnifier Window is moving. The Default value is Mouse Move.

    The C1Magnify.Move event is available to implement custom action.

    In the default value, you can select text when the Magnifier Window moves on the TextBox. Use the following code to move the caret on the textbox in the same case.

    Visual Basic
    Copy Code

    Imports C1.Win.TouchToolKit

     

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

        C1Magnify1.SetEnableMagnifier(TextBox1, True)

        C1Magnify1.MessageWhenMove = MessageWhenMove.LeftDown

    End Sub

    C#
    Copy Code

    using C1.Win.TouchToolKit;

     

    private void Form1_Load(object sender, EventArgs e)

    {

        C1Magnify1.SetEnableMagnifier(textBox1, true);

        C1Magnify1.MessageWhenMove = MessageWhenMove.LeftDown;

    }