|
-
May 25th, 1999, 12:27 AM
#1
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
-
May 25th, 1999, 01:15 AM
#2
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
-
May 27th, 1999, 04:31 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|