How Can i detect when an activex control is finshed downloading and loaded on a webpage.

I tried onload event but it was fired before the activex control was loaded.

any help would be great