This is a migrated thread and some comments may be shown as answers.
no Ink?
2 Answers 22 Views
This is a migrated thread and some comments may be shown as answers.
Elliott
Top achievements
Rank 2
Elliott asked on 30 Aug 2012, 03:44 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 03 Sep 2012, 10:25 AM
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 >>
0
Elliott
Top achievements
Rank 2
answered on 04 Sep 2012, 12:11 PM
thanks!
Asked by
Elliott
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Elliott
Top achievements
Rank 2
Share this question
or