sjn78 Posted August 21, 2003 Posted August 21, 2003 I have an address book similar to Outlook and I would like to be able to highlight a name and press the delete button to delete that person. I have set the KeyPreview value on the Form to True, but it won't recognise the delete key. What am I missing or is there another method to do something like this? Quote
sjn78 Posted August 21, 2003 Author Posted August 21, 2003 Thanks, works good although not on my app, I have a panel that fills the screen and then labels are generated to show each person. I cannot get the key event to work until I click into a textbox on the form. There is probably a way, but I'm not going to bother figuring it out now. Quote
wyrd Posted August 21, 2003 Posted August 21, 2003 Post your event code and we'll take a look. Double check your KeyPreview value just incase though. :) Quote Gamer extraordinaire. Programmer wannabe.
sjn78 Posted August 21, 2003 Author Posted August 21, 2003 It's cool, don't worry. It is probably better not to have the delete key active as it may cause accidental deletions. I know what you are going to say next, that I should have a message box warning come up before actually deleting a name. It is a Mdi child form...maybe part to do with it. I will no doubt look into it in the future. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.