listview as a 'toolbar' ?

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

my original impression was that it is possible to use listview as a sort of
a toolbar. Where images of icons are supported. but then how do I know when
a particular image has been clicked on ?

is this what everyone else use as a vertical tool bar ? I'm very curious

thankyou.
Tom
 
Tom,

A listview is not really the same as a toolbar. Yes, it does support
icons, but the two controls are inherently different.

If you want to know when an Item was changed, then you will need to
handle the SelectedIndexChanged event. However, if you need to know when an
image was clicked on, then you will have to handle the mouse down and mouse
up event handlers, and determine yourself if the button was clicked over the
image.

Hope this helps.
 
Back
Top