views:

1304

answers:

2

Is there a an event for ListViews that are activated when one of the column headers are clicked on? The plan was to add some text to the user's clipboard when they click on the column header. Is there any easy way to do this?

Thanks for any help you can give on the subject, I appreciate it!

+3  A: 

See link below for the column header click event, where you would add some text to the user's clipboard.

http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.columnclick.aspx

Murray Van Wieringen
When I put this line in, the event doesn't seem to work.private void ColumnClick(object o, ColumnClickEventArgs e){MessageBox.Show("Event Handled.";}Am I missing something?
Dropped.on.Japan
A: 

Thanks. I guess I need to learn how to properly bind an event to an event control, maybe. Sadly my experience with visual programs isn't much, so it may be another issue. Whatever the reason, thanks!

Dropped.on.Japan