Sunquick
Sunquick

Reputation: 301

How to trigger a button when an item from listview is seleted?

I have created a Windows Forms application with Microsoft Visual Studio 2010.

I have a listview1 which lists only the names of people from a Microsoft Access Database table which I have created, which works fine. I also have a button called Search.

What I want is to trigger this Search button whenever I click on a name from my listview1

An example with sample code would be appreciated.

Upvotes: 0

Views: 137

Answers (1)

Brijesh Mishra
Brijesh Mishra

Reputation: 2748

Simply call search function/or search button event handler on list change event

Upvotes: 1

Related Questions