Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / January 2005



Tip: Looking for answers? Try searching our database.

ActiveX Properties in a User Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shiggins_dev - 24 Jan 2005 23:45 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.