When you say you add a reference to the UserControl to Components do you mean the toolbox? If so then you must add the user actual user control (OCX) to the toolbox. tlbimp and aximp will only recreate the Interpos for you
I don't think there is anyway to avoid recreating the interops if the ocx changes, compatibility or new events added
----- Ronchese wrote: ----
Hello
I've tryied compile using the tlbimp, but when I try add reference th
UserControl to Components, the message saying "there are no UserControls i
this reference" appear
"Chris Podmore" <an*******@discussions.microsoft.com> wrote in messag
news:93**********************************@microsof t.com..
I think you need to rebuild the Interops before loading the applicatio
into VS.NET. These will be in the bin folder
tlbimp "myControl.ocx" /out:Interop.myControl.dll /namespace:myContro
aximp "myControl.ocx" /out:AxInterop.myControl.dl
/rcw:Interop.myControl.dl
Hope this helps