no Ink?

3 posts, 1 answers
  1. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 30 Aug 2012 Link to this post

    I am replacing as many Microsoft controls with Telerik Winforms controls in order to prepare for a move to Windows 8
    the app uses Microsoft Ink
    the Telerik textbox doesn't seem to want to hook up with Ink
    here's the kode
    myInkCollector = New InkCollector(Me.txtSignature.Handle)
    myInkCollector.DefaultDrawingAttributes.Width = ThinInkWidth
    myInkCollector.Enabled = True
    if txtSignature is a Microsoft textbox it works
    if it is a RadTextBox it doesn't
  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 03 Sep 2012 Link to this post

    Hi Marianne,

    Thank you for the question.

    The textbox part of RadTextBox is actually represented by the standard Microsoft TextBox. So, you need to access the hosted MS TextBox and its Handle using the following code snippet:
    Dim myInkCollector As Microsoft.Ink.InkCollector = New Microsoft.Ink.InkCollector(Me.RadTextBox1.TextBoxElement.TextBoxItem.HostedControl.Handle)
    myInkCollector.DefaultDrawingAttributes.Width = ThinInkWidth
    myInkCollector.Enabled = True

    I hope this helps.

    Regards,
    Nikolay
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Elliott
    Elliott avatar
    391 posts
    Member since:
    May 2010

    Posted 04 Sep 2012 Link to this post

    thanks!
Back to Top