I have an ActiveX control with a text box. I need to be able to set the Text
property from my web page at run-time.
I have implemented the
Private Sub UserControl_WriteProperties(PropBag As PropertyBag),
Private Sub UserControl_ReadProperties(PropBag As PropertyBag),
Private Sub GUIKitAssembler_InitProperties(PropBag As PropertyBag) in my
control. I have also explicitly set the params in my .html.
<BODY>
<OBJECT id=GUIKitAssembler1
classid=clsid:B091BFE2-1BAC-4228-AB6C-E8C6C5D860C6 VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="12674"><PARAM NAME="_ExtentY" VALUE="7990">
<PARAM NAME="txtValue" VALUE="Blue"></OBJECT>
</BODY>
However, when this code is run the property is not changed. With debugging
on, none of the PropertyBag functions are called. I thought, after reading
some docs, that these were called implicitly. Do I need to explicitly call
them? It's my understanding that the params set in html are available
through the PropertyBag object.
Any help would be really appreciated :) This is my first attempt at writing
a User Control.
Forian Grimm - 28 Jan 2005 10:06 GMT
initproperties or readproperties is called.
initproperties is call if their are no properties or your application(ie)
have any probs and call initproperties even if you have params
look out is initproperties called?
yes you must mark the user_control as save for init and safe for scripting
use the setup and deployment wizard
---> yourcontrol.inf
[AddToRegistry]
HKLM,"SOFTWARE\Classes\CLSID\{???}\Implemented
Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"
HKLM,"SOFTWARE\Classes\CLSID\{?}\Implemented
Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"
install your component by viewing the html
cu flori
> I have an ActiveX control with a text box. I need to be able to set the Text
> property from my web page at run-time.
[quoted text clipped - 20 lines]
> Any help would be really appreciated :) This is my first attempt at writing
> a User Control.