Click here to Skip to main content
16,020,111 members
Articles / Programming Languages / C#

Handling Right-Click Events in ListView Column Headers

Rate me:
Please Sign up or sign in to vote.
4.88/5 (28 votes)
5 Feb 2008CPOL3 min read 130.1K   2.2K   51  
.NET WinForms doesn't provide any way to handle right-click events on column headers. This C# code shows how to determine which header was right-clicked.

Views

Daily Counts

Downloads

Weekly Counts

License

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


Written By
Software Developer (Senior)
United States United States
Mark Lauritsen has been a software developer since 1983, starting at IBM and using a variety of languages including PL/1, Pascal, REXX, Ada, C/C++ and C#. Mark currently works at a midstream energy company developing Windows services and desktop applications in C#.

Comments and Discussions