T
Top Gun
I am trying to trap on a keypress "+" event and convert it to a tab for a
high-speed dataentry form that is done entirely from a 10-key. However, I do
NOT want the "+" character to be passed on to the textbox.
I am using code similar to this:
public class FastEntryControl : TextBox
{
protected override void OnKeyPress(KeyPressEventArgs e)
{
if ( (char)'+' == e.KeyChar )
//This is to create the tab event... but the "+" is still being entered
into the current textbox before the tab
base.OnKeyPress( new KeyPressEventArgs ( '\t');
else
base.OnKeyPress( e);
}
high-speed dataentry form that is done entirely from a 10-key. However, I do
NOT want the "+" character to be passed on to the textbox.
I am using code similar to this:
public class FastEntryControl : TextBox
{
protected override void OnKeyPress(KeyPressEventArgs e)
{
if ( (char)'+' == e.KeyChar )
//This is to create the tab event... but the "+" is still being entered
into the current textbox before the tab
base.OnKeyPress( new KeyPressEventArgs ( '\t');
else
base.OnKeyPress( e);
}