Microsoft.Ink in an Asp.net or classic Asp App
-
Hi Short Question. Is it possible to work with Microsoft.Ink on Asp or Asp.net? After adding the Tablet PC Api to my Asp.net Project i try to create an instance of Microsoft.Ink.InkPicture. But it seems that it's working only with Windows.Forms.. Is there any other Way to write with a Pen on a Screen using a Webbased Application? Greetings from Germany
-
Hi Short Question. Is it possible to work with Microsoft.Ink on Asp or Asp.net? After adding the Tablet PC Api to my Asp.net Project i try to create an instance of Microsoft.Ink.InkPicture. But it seems that it's working only with Windows.Forms.. Is there any other Way to write with a Pen on a Screen using a Webbased Application? Greetings from Germany
Hi Me again. I try Goooogle and found this article.. http://www.code-magazine.com/article.aspx?quickid=0512062&page=1 I think that's it but there is one thing that i don't understand. In the article.. --- Start by creating a new Windows Control Library project and add a reference to the Microsoft Tablet PC API. Then you will Ink-enable the entire surface of the new User Control just the way you would in a Windows Forms application, with just one twist. When you instantiate the InkOverlay object, one of the overrides in the constructor is to hook it up with a control, rather than a Windows handle. Public Sub InkOverlay(ByVal attachedControl As _ Control) This is one of the most important things to remember for using this control in a Web application. You must attach the InkOverlay object to the control itself, not its handle. --- I don't understand this.. Can anyone help me with this.. My Code for the Control looks like this..
namespace INK { public class UserControl1 : System.Windows.Forms.UserControl { private InkOverlay inko; private System.ComponentModel.Container components = null; public void InkOverlay(Control attachedControl) { } private void InkControl_Load(object sender, System.EventArgs e) { inko = new InkOverlay(this); inko.Enabled = true; } public UserControl1() { InitializeComponent(); } protected override void Dispose( bool disposing ) { if( disposing ) { if( components != null ) components.Dispose(); } base.Dispose( disposing ); } } }
-- modified at 6:00 Tuesday 31st January, 2006 -
Hi Me again. I try Goooogle and found this article.. http://www.code-magazine.com/article.aspx?quickid=0512062&page=1 I think that's it but there is one thing that i don't understand. In the article.. --- Start by creating a new Windows Control Library project and add a reference to the Microsoft Tablet PC API. Then you will Ink-enable the entire surface of the new User Control just the way you would in a Windows Forms application, with just one twist. When you instantiate the InkOverlay object, one of the overrides in the constructor is to hook it up with a control, rather than a Windows handle. Public Sub InkOverlay(ByVal attachedControl As _ Control) This is one of the most important things to remember for using this control in a Web application. You must attach the InkOverlay object to the control itself, not its handle. --- I don't understand this.. Can anyone help me with this.. My Code for the Control looks like this..
namespace INK { public class UserControl1 : System.Windows.Forms.UserControl { private InkOverlay inko; private System.ComponentModel.Container components = null; public void InkOverlay(Control attachedControl) { } private void InkControl_Load(object sender, System.EventArgs e) { inko = new InkOverlay(this); inko.Enabled = true; } public UserControl1() { InitializeComponent(); } protected override void Dispose( bool disposing ) { if( disposing ) { if( components != null ) components.Dispose(); } base.Dispose( disposing ); } } }
-- modified at 6:00 Tuesday 31st January, 2006got it..