public virtual int[] GetSelectedIndices () { return (int []) GetSelectedIndicesInternal ().ToArray (typeof (int)); } #endif
protected void remove( ListBox lb ) { int[] selected = lb.GetSelectedIndices(); foreach( int i in selected ) { lb.Items.RemoveAt( i ); } }