I'm pretty new in c# and i have a problem.
I have an interrupt and i want to show some data on the form. to do that i need to delegate to obtain the form. I want to have the whole form because i have to put lots of information on the form.
I've tried this:
[code]
public optionbox getOptionbox()
{
if (box.InvokeRequired)
{
optionboxThreadCallBack d = new optionboxThreadCallBack(getOptionbox);
return d();
}
else
return box;
}
[/code]
but i get an stack overflow.
The solution needs to work and doesn't needs to be the best.