开发者

Delete Functionality in RichtextBox (Windows Forms with .NET 3.5)

I am facing a problem to implement the delete functionality. The Key_Down event is not getting raised when I pressed a delete key from Keyboard. If I implement the Key_Press OR Key_Up Event.

Suppose I have selected some Text from RichTextBox and pressed开发者_开发百科 the DEL, then the text get removed first and then it reaches to the Event code(Key_Press OR Key_Up Event).

Can anybody help me to resolved this?


If you are trying to check for the delete key you could try the KeyPreview event. That should fire before the KeyPress or KeyDown events.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜