Re: ATL Control in VB

From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 04/24/04


Date: Fri, 23 Apr 2004 23:14:20 -0700

ActiveX Controls have to be hosted on a form (e.g. dialog)
by design. Some controls may be designed to act as plain
Automation servcers as well (most aren't). These typically
are not real control, just packaged as controls for the
convenience of VB developers. Some are the result of poor
design spec on the part of their developers (or managers)...

In short, when you hear control, that means it is to be hosted
on a form.

-- 
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Richard Boehme" <boehme@newsgroups.nospam> wrote in message
news:uG3OcuTKEHA.3436@tk2msftngp13.phx.gbl...
> The dialog is not modal, but what would be the problem if it was? Also,
> I am now declaring my contro like this:
>
> Dim WithEvents emVideoPlayer As CEMVideoCtl
>
> in VB, but this seems to make statement like this:
>
> With emVideoPlayer
>          .Width = Me.ScaleWidth - (25)
>          .Height = Me.ScaleHeight - (147)
>      End With
>
> not work at all. Are there any strange quirks to having the control on
> the form and also declaring it as WithEvents that I'm missing?
>
> Also, the link to where it says the event interfaces should be dual is
here:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcconeventhandlingincom.asp
>
> which is referenced from the "Adding an Event Using Attributes" section
> of "Creating an ActiveX Control" here:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcconeventhandlingincom.asp
>
> Thanks for the help!
>
> Richard Boehme
>
> Alexander Nickolov wrote:
>
> > Ensure you are not displaying a modal dialog in the VB debugger.
> > Do you pay attention to the event freeze flag (m_nFreezeEvents)?
> > It must be zero, otherwise your events likely will be dropped by
> > your container.
> >


Relevant Pages

  • English eBooks Engineering
    ... Adaptive Voltage Control in Power Systems Fusco, ... Advanced Design Techniques for RF Power Amplifiers Krizhanovski, ... Advanced Fuzzy Logic Technologies in Industrial Applications Bai, ... Bioinformatics Using Computational Intelligence Paradigms Jain, ...
    (sci.med.nutrition)
  • Re: Microchip programmer Sydney Aus
    ... schematic design, embedded firmware and pcb layout to finished product. ... possible through the use of advanced microcontroller products from Microchip ... microcontroller applications in Innovative Power and Control solutions. ... Resources cover a broad range of electronics ...
    (sci.electronics.design)
  • Ebooks Forum
    ... Analysis and Design of Advanced Multiservice Networks Supporting ... Control and Observer Design for Nonlinear Finite and Infinite ... IUTAM Symposium on Computational Approaches to Multiphase Flow ... Islamic Philosophy and Occidental Phenomenology on the Perennial Issue ...
    (sci.med.nutrition)
  • a forum for you
    ... Advances in High Performance Computing and Computational Sciences ... Analysis and Design of Advanced Multiservice Networks Supporting ... Control and Observer Design for Nonlinear Finite and Infinite ... IUTAM Symposium on Computational Approaches to Multiphase Flow ...
    (sci.med.nutrition)
  • English eBooks Engineering
    ... Advances in High Performance Computing and Computational Sciences ... Analysis and Design of Advanced Multiservice Networks Supporting ... Control and Observer Design for Nonlinear Finite and Infinite ... IUTAM Symposium on Computational Approaches to Multiphase Flow ...
    (sci.med.nutrition)