Results 1 to 5 of 5

Thread: ocx & html

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    tehran,iran
    Posts
    53
    How can I import an OCX to html file.
    it is for my own ocx for my own use.


    Thanx

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    You want to use an ocx you wrote in an HTML file, like for a web or intranet page?
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    tehran,iran
    Posts
    53

    ocx & html

    I want to use it for intranet.

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Hang on a while, I'll check it out for using an OCX in an html file...
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  5. #5
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    First you need to know the CLSID of the OCX. This can be found in the registry.

    Next, take your HTML and paste this:

    <object id="control" classid="clsid:C932BA85-4374-101B-A56C-00AA003668DC" width="100"
    height="50">
    [activex control here (masked edit box)]</object>

    the CLSID in this code is for the masked edit box (on my machine) just replace it with the CLSID of the OCX you want to insert and poof! it works.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

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