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;
}