Hi Song,
I wrote the article, the article is right and your code seems to be fine.
You don´t need the VSIP SDK (which, by the way, is downloadable for
everybody, not just MSDN subscribers) to get the IDesignerHost of a Windows
Forms designer, only for Web forms. Also, form designers for Smart Device
forms always return a null IDesignerHost.
So, the question is: which kind of window is active when you invoke the
feature of the add-in? Is winObject.Object null for that window? If that
property is null, you will not be able to get a IDesignerHost, by any means
(VSIP Extras or not), from it....

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
>I tried with the following C# code:
>
[quoted text clipped - 18 lines]
> Does this apply to Window form too? I have only MSDN professional
> subscrption. Does it include VSIP SDK?
Song - 27 Oct 2005 18:58 GMT
Carlos,
Thanks. I see what the problem is now. I am using the designer for smart
device. Is there a way to get IDesignerHost from the designer for smart
device now?
> Hi Song,
>
[quoted text clipped - 31 lines]
> > Does this apply to Window form too? I have only MSDN professional
> > subscrption. Does it include VSIP SDK?
Carlos J. Quintero [VB MVP] - 28 Oct 2005 09:13 GMT
AFAIK, no using VS.NET 2003, I don´t know why. Maybe it is a bug or maybe MS
could not make it work until VS 2005.

Signature
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
> Carlos,
> Thanks. I see what the problem is now. I am using the designer for smart
> device. Is there a way to get IDesignerHost from the designer for smart
> device now?