CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Changing Containers for Controls in ActiveX dll's

    Is it possible to change the container for an ActiveX Control in an ActiveX DLL to IE5 or place a form (which is the container for the control) into IE5?


    Bruce Hargrave


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Changing Containers for Controls in ActiveX dll's

    To place the form in IE, you should develop it as activex document.

    An activex control can straigt away placed in a webbrowser control, because WB is a container by itself.
    But ,to put it in IE, you have to write a HTML page, which includes the control and control the IE (in automation mode) to load that page. ( i think) Take a look at OBJECT tag for HTML.
    Ravi


  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Changing Containers for Controls in ActiveX dll's

    To hoist the ActiveX control a code like this also
    works: Ex:

    'WebBrowser must first navigate to a HTML file.
    webbrowser1.Navigate "blank.htm"
    '
    WebBrowser1.Document.Open
    ' this would create a calender control on the
    ' webbrowser window.
    WebBrowser1.Document.Write "<object id=calendar classid=clsid:8E27C92B-1264-101C-8A2F-040224009C02 width=372 height=279></object> "
    WebBrowser1.Document.Close
    msgbox "The month is:" + str(WebBrowser1.Document.calendar.month)



    Ravi


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

Featured