Get the parent of usercontrol

D

Dhananjay

Hello All,
I have develop one UserControl from Vb 2005. I have also "Make
Assembly COM-Visible" to checked. How can I get the parent
application's name of this usercontrol. I mean, if I put this control
on custom pane of MS word or MS outlook (by using COM-addin of word /
outlook), then how come I get the information that my control is put
on MS word or MS outlook? If I check the parent in Load event of user
control then it shows that Me.Parent is nothing.

Thanks in advance,
Dhananjay
 
G

GS

I may be proofed wrong.
I suspect being Outlook addin and com, I would not expect the .net me.parent
work and you have to resort to windows api

Good luck ( even though I failed to see why you want to know what is the
parent. Usually with outlook addin, all one cares is to access outlook items
and one can look at vsto sdk and samples for that)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top