Click here to Skip to main content
15,923,051 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert HTML to RTF Pin
Nagy Vilmos15-Jul-09 3:54
professionalNagy Vilmos15-Jul-09 3:54 
GeneralRe: Convert HTML to RTF Pin
Sebastian T Xavier15-Jul-09 4:02
Sebastian T Xavier15-Jul-09 4:02 
GeneralRe: Convert HTML to RTF Pin
Nagy Vilmos15-Jul-09 4:11
professionalNagy Vilmos15-Jul-09 4:11 
GeneralRe: Convert HTML to RTF Pin
Sebastian T Xavier15-Jul-09 4:23
Sebastian T Xavier15-Jul-09 4:23 
GeneralRe: Convert HTML to RTF Pin
Luc Pattyn15-Jul-09 4:11
sitebuilderLuc Pattyn15-Jul-09 4:11 
GeneralRe: Convert HTML to RTF Pin
Dave Kreskowiak15-Jul-09 5:20
mveDave Kreskowiak15-Jul-09 5:20 
GeneralRe: Convert HTML to RTF Pin
Luc Pattyn15-Jul-09 5:35
sitebuilderLuc Pattyn15-Jul-09 5:35 
GeneralRe: Convert HTML to RTF Pin
Dave Kreskowiak15-Jul-09 7:29
mveDave Kreskowiak15-Jul-09 7:29 
GeneralRe: Convert HTML to RTF Pin
Luc Pattyn15-Jul-09 7:36
sitebuilderLuc Pattyn15-Jul-09 7:36 
AnswerRe: Convert HTML to RTF Pin
V.15-Jul-09 4:09
professionalV.15-Jul-09 4:09 
QuestionStarting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 3:33
SimpleData15-Jul-09 3:33 
AnswerRe: Starting to read a file from an origin with Binaryreader Pin
Luc Pattyn15-Jul-09 3:41
sitebuilderLuc Pattyn15-Jul-09 3:41 
AnswerRe: Starting to read a file from an origin with Binaryreader Pin
Ennis Ray Lynch, Jr.15-Jul-09 3:45
Ennis Ray Lynch, Jr.15-Jul-09 3:45 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 4:05
SimpleData15-Jul-09 4:05 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
Ennis Ray Lynch, Jr.15-Jul-09 4:11
Ennis Ray Lynch, Jr.15-Jul-09 4:11 
AnswerRe: Starting to read a file from an origin with Binaryreader Pin
OriginalGriff15-Jul-09 4:04
mveOriginalGriff15-Jul-09 4:04 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 4:13
SimpleData15-Jul-09 4:13 
AnswerRe: Starting to read a file from an origin with Binaryreader Pin
OriginalGriff15-Jul-09 4:33
mveOriginalGriff15-Jul-09 4:33 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 4:44
SimpleData15-Jul-09 4:44 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
Luc Pattyn15-Jul-09 4:54
sitebuilderLuc Pattyn15-Jul-09 4:54 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
OriginalGriff15-Jul-09 4:59
mveOriginalGriff15-Jul-09 4:59 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 4:52
SimpleData15-Jul-09 4:52 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
OriginalGriff15-Jul-09 5:03
mveOriginalGriff15-Jul-09 5:03 
GeneralRe: Starting to read a file from an origin with Binaryreader Pin
SimpleData15-Jul-09 5:08
SimpleData15-Jul-09 5:08 
Questiondelete rows in listView using KeyPressed event and Delete Key Pin
al3xutzu0015-Jul-09 3:14
al3xutzu0015-Jul-09 3:14 
Hi Guys,
I have been trying to implement the KeyPress event on a listView so that when i use the DELETE key, i will delete the selected rows (MultiSelect=true)

The code works fine when i use a button to call it from :
private void btnDeleteRow_Click(object sender, EventArgs e)
{
    while (listView1.SelectedIndices.Count > 0)
    {
        listView1.Items.RemoveAt(listView1.SelectedIndices[0]);
    }
}


However in MSDN documentation it is explicitly said that e.KeyChar can't be used for DELETE and several other special function keys like F1-F12 , PageUp etc...

http://msdn.microsoft.com/en-us/library/system.windows.forms.keypresseventargs.keychar.aspx[^]


How can i use the DELETE KEY to delete items in listViews?

Kind regards,
AlexConfused | :confused:

“Be the change you want to see in the world.”

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.