Create an 100% compatible ActiveX Usercontrol with VB.NET

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi

I know it sounds grazy to create an ActiveX Usercontrol with VB.NET,
where a native tool for this already exists, VB6.
The existing ActiveX Control Containers should be able to load
dynamically the exisitng ActiveX Controls and also the new one written
with VB.NET. We want to make this switch to the new technology, because
the IDE is much more better, the WSDL support is much more better, OO
is included, and so on .....

State at the moment, we have written one usercontrol in vb.net,
eveything works quite fine, but the events don't work.
In the containers we use following code:

dim ocx as vbcontrolextender
set ocx = controls.add(progid, "ctl")

we use the eventhandler from vbcontrolextender
Private Sub ocx_ObjectEvent(Info As EventInfo)
end sub

The sub ocx_ObjectEvent is never been called !

I believe that it is possible to create an 100% compatible usercontrol,
but i don't know exactly how ??

mybe some of yours can help me
thank in advance
michael

.



Relevant Pages

  • activeX doesnt dispose
    ... Here at work they've got an activeX control which is used on a usercontrol, ... But the problem is the activex control doesn't get disposed. ... app with scitech .net memory profiler 2.5) I added this code to disposing ... Public sub MyDispose ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to call UserControls Method in Module file in a ActiveX Control Project?
    ... > In a ActiveX Control Project,there is a Module fileexcept a ... > The UserControl has Private Methods and Public Methods. ... Public Sub Sub1 ... Private Sub UserControl_Click ...
    (microsoft.public.vb.controls)
  • Re: Convert EXE project to an ActiveX control?
    ... Just select the project properties and ... > change it to an ActiveX Control. ... > until this picture has to change and this error occurs. ... usercontrol because there may be dozens, ...
    (microsoft.public.vb.general.discussion)
  • Re: Convert EXE project to an ActiveX control?
    ... Just select the project properties and ... > change it to an ActiveX Control. ... > until this picture has to change and this error occurs. ... usercontrol because there may be dozens, ...
    (microsoft.public.vb.controls.internet)
  • Re: How to get a round rectangle ActiveX Control?
    ... I thought before that the Region Method would not apply to the UserControl, ... > Create a round rect region for your control and then set it as the ... >>In a ActiveX Control project,the UserControl form is always rectangle. ... >>If I want it to be a round rectangle appearance when the Active Control is ...
    (microsoft.public.vb.winapi)