M
Mohamed Oubouchil
Hi All,
Thanks Daniel for your help.
Now i'm facing one problem in my control application ASP.NET with C#
i'm using the code below:
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
public class MyText : System.Web.UI.WebControls.TextBox
{
private const char VK_BACK =(char)Keys.Back;
private const char VK_RETURN =(char)Keys.Return;
private const char VK_LEFT =(char)Keys.Left;
private const char VK_RIGHT =(char)Keys.Right;
private const char VK_DOWN =(char)Keys.Down;
protected override void OnKeyPress(KeyPressEventArgs e)
{
e.KeyChar!=VK_BACK
e.Handled = true;
}
}
But i have more error like this :
The type or namespace name 'Keys' could not be found (are you missing
a using directive or an assembly reference?)
Thanks advanced for your help
Mohamed oubouchil
Thanks Daniel for your help.
Now i'm facing one problem in my control application ASP.NET with C#
i'm using the code below:
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
public class MyText : System.Web.UI.WebControls.TextBox
{
private const char VK_BACK =(char)Keys.Back;
private const char VK_RETURN =(char)Keys.Return;
private const char VK_LEFT =(char)Keys.Left;
private const char VK_RIGHT =(char)Keys.Right;
private const char VK_DOWN =(char)Keys.Down;
protected override void OnKeyPress(KeyPressEventArgs e)
{
e.KeyChar!=VK_BACK
e.Handled = true;
}
}
But i have more error like this :
The type or namespace name 'Keys' could not be found (are you missing
a using directive or an assembly reference?)
Thanks advanced for your help
Mohamed oubouchil