Dya

Dya

  • NA
  • 4k
  • 0

peninputpanel and inkedit

Nov 1 2007 10:28 PM

I'm currently trying to put inkedit and peninputpanel together. I understand that i need sdk 1.5 for this. But i've tried it with 1.5 but it does not work. So i'm now using sdk 1.7

Here is my codes.

-----------------------------------------------------------------------

Imports Microsoft.Ink

Public Class Form1

Dim thePenInputPanel As PenInputPanel

Private Sub TextBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseDown

thePenInputPanel.AttachedEditWindow = TextBox1.Handle

End Sub

Private Sub InkEdit1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles InkEdit1.MouseDown

thePenInputPanel.AttachedEditWindow = InkEdit1.Handle

End Sub

End Class

---------------------------------------------------------------------------------------------------------------

The 1st one is for a textbox and the secong is for inkedit. But i keep getting errors such as innerException for Com Class or asking me to use the 'new' Keyword to create an object instance.

Where did i go wrong?

Thanks all.