I am using the inkEdit Control provided with Microsoft Tablet PC SDK to take digital ink input from the user. The inkEdit control takes the data input, clears the textbox and writes the output (either recognized or in ink mode) in the same window.
Is there any way to write the output of inkEdit control in a textbox. My application has to take input from the user in a seperate textbox(writing space) and output the written data into a seperate multiline textbox(rendering).
Any help would be highly appreciated.
Thanks!

Dani AI

Generated

— two practical ways to keep handwriting input (writing area) separate from rendered text (multiline textbox).

InkEdit is meant to collect ink, run handwriting recognition, and show the recognized text inline by default; InkPicture is the control that keeps strokes as ink and exposes the underlying Ink object you can manipulate. (learn.microsoft.com)

Option A — recognize programmatically and write to your textbox (cleanest): create a RecognizerContext, assign it the InkPicture’s strokes and call Recognize (or BackgroundRecognize for async). Check the returned status and use the RecognitionResult.TopString for display. Example (C#):

// using Microsoft.Ink;
// synchronous example
using (RecognizerContext rctx = new RecognizerContext())
{
    rctx.Strokes = inkPicture.Ink.Strokes;
    if (rctx.Strokes.Count > 0)
    {
        RecognitionStatus status;
        RecognitionResult res = rctx.Recognize(out status);
        if (status == RecognitionStatus.NoError)
            txtRendered.Text = res.TopString;
    }
}

This gives you direct control of when and how text is produced (and lets you test confidence or alternates). (learn.microsoft.com)

Option B — feed ink into InkEdit and read its Text: copy the ink as ISF (Ink Serialized Format) to the clipboard and paste into an InkEdit instance (it will perform recognition per its settings); then read InkEdit.Text and assign that string to your multiline textbox. Small sketch:

inkPicture.Ink.ClipboardCopy(inkPicture.Ink.Strokes,
    InkClipboardFormats.InkSerializedFormat, InkClipboardModes.Copy);

// paste into InkEdit (e.g. SendMessage(inkEdit.Handle, WM_PASTE,...))
txtRendered.Text = inkEdit.Text;

ISF / clipboard helpers are provided by the Tablet/Ink API. (learn.microsoft.com)

Notes and quick troubleshooting: ensure handwriting recognizers for the target language are installed; create ink controls on an STA/UI thread and dispose RecognizerContext/controls when done to avoid leaks; use BackgroundRecognize if you want live streaming recognition; set InkInsertMode = InsertAsInk if you want ink kept instead of converted. (learn.microsoft.com)

(Posts from about activation codes are off-topic for this thread and can be ignored.)

Note: I recently found a website where data written inside inkPicture control was being converted to text inside inkEdit control. Is is possible to give inkEdit control input using ink Overlay or ink Picture control?

Please i need activation code to access my store

Due to that I cannot access my application

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.