How would you prevent duplicate firing when changing from 3 selected items
to 1?

I am going to try use another event...

Re: Listview SelectedIndexChange by rich

rich
Wed Mar 01 00:23:31 CST 2006

On Wed, 1 Mar 2006 10:30:23 +1100, Jared wrote:

> How would you prevent duplicate firing when changing from 3 selected items
> to 1?
>
> I am going to try use another event...

You have to do it manualy by setting BindingContext property of the control
before you set any dataBindings.

It is a BUG, listed in Knowledge Base. I lost whole day to figure it out.

eg.

Dim bContext as New BindingContext
MyComboBoxControl.BindingContext = bc
...
now you can set any DataBindings

same for the listbox control

Cheers!

Re: Listview SelectedIndexChange by Jared

Jared
Wed Mar 01 18:18:07 CST 2006

Got the effect I wanted by dimming a varible and storing last
selected(0).index and comparing against new selection.


"Jared" <jared@paradigmitz.net.au> wrote in message
news:umOy47LPGHA.2668@tk2msftngp13.phx.gbl...
> How would you prevent duplicate firing when changing from 3 selected items
> to 1?
>
> I am going to try use another event...
>
>
>



Re: Listview SelectedIndexChange by klo

klo
Thu Aug 31 03:13:53 CDT 2006

I have a listView and when I am tying to do something with the SelectedIndexChanged event I can not access the .SelectIndexCollection property.
Am I missing something??
---
Posted via www.DotNetSlackers.com

Re: Listview SelectedIndexChange by Claes

Claes
Thu Aug 31 09:39:35 CDT 2006

What code are you using?
What errors are you getting?

The property is called SelectedIndicies btw (not SelectIndexCollection).

/claes

<klo> wrote in message news:eXeumVNzGHA.5048@TK2MSFTNGP05.phx.gbl...
>I have a listView and when I am tying to do something with the
>SelectedIndexChanged event I can not access the .SelectIndexCollection
>property.
> Am I missing something??
> ---
> Posted via www.DotNetSlackers.com



Re: Listview SelectedIndexChange by Jared

Jared
Thu Aug 31 18:05:01 CDT 2006

.SelectedItems(n)..index (collextion)


<klo> wrote in message news:eXeumVNzGHA.5048@TK2MSFTNGP05.phx.gbl...
>I have a listView and when I am tying to do something with the
>SelectedIndexChanged event I can not access the .SelectIndexCollection
>property.
> Am I missing something??
> ---
> Posted via www.DotNetSlackers.com