public virtual void SetListBoxSelectedIndex(ListBox Object, Int32 Value) { if (this.InvokeRequired) { SetListBoxSelectedIndexDelegate dele = new SetListBoxSelectedIndexDelegate(SetListBoxSelectedIndex2); this.Invoke(dele, new object[] { Object, Value }); } else { SetListBoxSelectedIndex2(Object, Value); } }