Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I've been writing a small extension app (to run under Revit Architecture) using the .NET framework and VS2008 express. I've created a small editor that uses Delcan Brennan's rich textbox Extended class. However I have noticed that when I press the delete key the key event falls back through to the Revit program instead of deleting a character in the textbox.

I've tried setting the KeyPreview property of the form and also overriding the PreviewKeyDown and KeyDown events and IsInputKey of the richTextBoxExtended component and form but I still can't make it catch the delete key. My form is running non-modal.

I've Goggle searched this but all the posts are concerning applications and not extensions. I can't see that making a difference however.

Can someone point me to a tutorial or resource on this?
Posted

1 solution

What can you do if Declan Brennan blocked processing of this key? Patch the code or report the problem to Declan :-)…

By the way, spell person's name correctly, use copy-paste to avoid a mistake…

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900