Library sample chapters

ActiveX controls

Introduction

This is a sample chapter from Programming Visual Basic 6.0

ActiveX controls are the descendants of the first OCX controls that appeared when Visual Basic 4 was released. While they retain the same file extension, they're very different beneath the surface. The original OCX controls included a lot of low-level functionality (and consequently had to support many COM interfaces), and therefore were heavy and relatively slow. The new ActiveX controls were specifically redesigned to be embedded in HTML pages and delegate much of their functionality to their container, be it Microsoft Internet Explorer, a Visual Basic form, or any other ActiveX-compliant environment. Thanks to this different approach, ActiveX controls are generally slimmer than old OCXs, download faster, and load in memory more rapidly.

Comments

  1. 21 Jul 2006 at 10:33

    I also looking for the control for years, but still can't get a good one, some control only make a form transparent instead of a control like picturebox, some control only copy the picture of  background under it, isn't real transparent. some controls have transparent background but the transparent area is  a hole that you can click controls behind it in z-order. I ever tried the following code in a form:

    Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
    Global Const GWL_EXSTYLE = (-20)
    Global Const WS_EX_TRANSPARENT = &H20&

    add a textbox on the form and a picturebox named picturebox1 over it, in form_load event add this code:
        SetWindowLong picturebox1.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT


    the problems are, only when content of textbox change(by code), the picturebox was changed to transparent, second, when then picturebox resized, the picturebox was changed back to white.usually.

    dear sir, if you have got a ideal method to make this control, would you please send me a copy? thank a lot.

  2. 21 Jul 2005 at 00:24

    i want to create a transperent picturebox behind it i will put internet control / webbrowser.
    user will able to see the webpage and unable to click  on web page ,
    and he would not be able to select text / image .


      is it possible to create such a activx picture box . i need it  urgently .  please reply.as  soon as  possible

  3. 28 Apr 2005 at 17:13

    In .NET it is possible to show properties to users of comoponents during runtime.  Is there a method to show PropertyPages during Runtime of a VB 6.0 ActiveX control?


    Thanks

  4. 28 Apr 2005 at 17:12

    In .NET it is possible to show properties to users of comoponents during runtime.  Is there a method to show PropertyPages during Runtime of a VB 6.0 ActiveX control?


    Thanks

  5. 27 Apr 2005 at 16:14

    Does anyone know how can I convert a *.vbp (visual basic project) into an activex control to use it on a Web Page?

  6. 12 Mar 2005 at 02:46

    Is it possible to digitally sign an already packaged Active X control or does the code have to be signed.
    I want to sign MsRdpClient so we can use it on our intranet without changing IE security settings in the GPO.
    Thanks

  7. 18 Mar 2004 at 04:59

    Hi
    very thanx from givig imediate reply.
    I have a property page for ActiveX control & if i right click on that control in client design view its show popup menu & in that option is property after clicking it shows the property page what ever i made But the same proprprty page I wan tto display at run time . cos i m developing active control like Rational Rose. so that user ca draw the flow digram & at that time (run time) user can be able to change the property at run time its Background , style etc so it is possible to show the property page at run time
    Plz comments


    Thanx
    Regards
    Mahesh

  8. 18 Mar 2004 at 01:03

    Hi


    I want to show the property page at run time for a activeX control so that user can change the backgroun color & style of drawing .
    any buddy knows how to show ?
    plz comment


    Thanx
    Regards

  9. 17 Nov 2003 at 06:24

    adadf

  10. 17 Oct 2003 at 22:40

    Deep and clear. It was just I was looking for. Great! Thank you.

  11. 01 Jan 1999 at 00:00

    This thread is for discussions of ActiveX controls.

Leave a comment

Sign in or Join us (it's free).