Tazsweet19 0 Newbie Poster

I tried to looking for website about EventDelegate for removeItemAt. I saw the error message, it said no overload for 'removeItemAt' matches delegate 'GUI.TabsAdd.eventDelegate'. Thanks

internal void removeItem(IEvent anEvent)
        {
            if (anEvent == null)
                return;
            if (!tab.InvokeRequired)
            {
                IEventThingData metadata = anEvent.GetThingData();
                lock (EventUpdaterLock)
                {
                    tab.Items.Remove(anEvent);
                }
            }
            else
                tab.Invoke(new EventDelegate(removeItem), new Object[] { anEvent });
            Length--;
        }

        internal IEvent removeItemAt(Int32 position)
        {
            if (!tab.InvokeRequired)
            {
                lock (EventUpdaterLock)
                {
                    tab.Items.RemoveAt(position);
                }
            }
            else
                tab.Invoke([B]new EventDelegate(removeItemAt)[/B], new Object[] { position });
            Length--;
            return null;
        }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.