try this
its unclear why you are using string text as a parameter if its not being passed on, but here it is
void delegate textCallback(string text);
public void ThreadProcSafe2(String text)
{
if (this.m_AllKnownDevicesFrm.InvokeRequired)
{
this.m_AllKnownDevicesFrm.Invoke(new textCallback(ThreadProcSafe2), text);
}
else
{
switchPanels(1);
}
}
Reputation Points: 133
Solved Threads: 141
Veteran Poster
Offline 1,162 posts
since Aug 2008