Click to See Complete Forum and Search --> : Changing Containers for Controls in ActiveX dll's


May 25th, 1999, 12:27 AM
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

Ravi Kiran
May 25th, 1999, 01:15 AM
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

Ravi Kiran
May 27th, 1999, 04:31 AM
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