Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted

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.

Posted
Post your event code and we'll take a look. Double check your KeyPreview value just incase though. :)
Gamer extraordinaire. Programmer wannabe.
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...