Results 1 to 2 of 2

Thread: Using a usercontrol in HTML

  1. #1

    Thread Starter
    Junior Member Anthrax's Avatar
    Join Date
    Oct 1999
    Location
    Maine, USA
    Posts
    29

    Post

    I created a UserControl in VB and I wanted to put it on my web page. when i ran the control from VB it opened in Internet
    Explorer, I looked at the source and saw that I need the <object> tag but Im not sure how to point it to my .ctl file.
    Can anyone help me? Thanks.

  2. #2

    Post

    Object-Tag is right. But you need a little bit more.

    1:
    Compile your control so that you have an OCX-File. A ctl-file cannot be used !

    2: Search the registry for the classid of your control. (Search for the name of your control and when you've found copy the long key. Something like {XXXX-XXXX-XXXX-XXXX-XXXXX})

    3: Copy the full object-tag you've seen and replace the classid with the classid of your control.

    4. For more help send me an eMail or use MSDN.

    Regards,

    Björn

    ------------------
    EMAIL: [email protected]

    PAGE: <A HREF="http://members.xoom.com/sharetools
    " TARGET=_blank>http://members.xoom.com/sharetools
    </A>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width