No, you don't have to detect the delete key for normal use of the
textbox,
characters should be deleted using [Delete] or [Backspace], but unlike
[Backspace], which has a character \b, there is no character for
[Delete].
Try trapping keys in a KeyDown event to see if the delet button is event
sent to the TextBox. It may be trapped by the form somehow.
On Tue, 22 Aug 2006 14:51:03 +0200, Joemanc
<
[email protected]>
wrote:
Morten - I am not not using the KeyPress event. Am I now required to
trap the
Delete keypress in .NET? Seems odd that I would have to trap the
Delete
keypress keypress, but not the backspace key.
Oddly enough, I discovered in one of my application's smaller forms,
the
delete button works. I double-checked the properties of the different
textboxes and the different forms and could not find any differences.
:
Hi Joemanc,
Are you processing text in a textbox using the KeyPress event? If
so,
not
that the delete key does not appear in this event, but you can trap
it
in
KeyUp/KeyDown.
On Mon, 21 Aug 2006 20:43:01 +0200, Joemanc
<
[email protected]>
wrote:
I've converted my VB6 app to VB.NET 2003. For some strange reason,
the
delete
key will not work in any of my textboxes in the application. The
backspace
key works just fine. The delete key works in textboxes in VB6. Is
there
some
new event that I need to code for the delete key in VB.NET?