VintaSoft Annotation .NET Plug-in Discussions

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Textannotation show textbox automaticly



Textannotation show textbox automaticly

Post by MichaelHerrmanns »

Hello Alexander,

is there a possibility to show the textbox of an textannotion automaticly after the annotation is finished building?
I try same things but without success.

Best regards

Michael


Re: Textannotation show textbox automaticly

Post by Alex »

Hello Michael,

Yes, you can show text box associated with annotation automatically when annotation is finished building.

Here is a snippet of code:
private void annotationViewer1_AnnotationBuildingFinished(object sender, EventArgs e)
{
    AnnotationBase anno = annotationViewer1.SelectedAnnotation;
    TextAnnotation textAnno = anno as TextAnnotation;
    if (textAnno != null)
    {
        annotationViewer1.Controls.Add(textAnno.TextBox);
    }
}
Best regards, Alexander


Re: Textannotation show textbox automaticly

Post by MichaelHerrmanns »

Hello Alexander,

thank you for you reply.
The code work as I aspected.
I extended it with the location of the textannotation
textAnno.TextBox.Location = New Point(CInt(textAnno.Location.X), CInt(textAnno.Location.Y))
Otherwise the textbox appear on location (0,0).

Best

Regards

Michael


Page 1 from 1: 1