Hi,

I have noticed a bug with my application, if the form doesn't have the focus (so its not the activeform) then my application throws an error.

Is there another way I can carry this out:

Code:
((Form1)Form1.ActiveForm).panel1.Controls.Add(aLabel);
I have tried all mannors of bits to try and remove the 'ActiveForm' element and it still compile correctly.

Is there a way to achieve this?

Many Thanks,

Al