Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX control doesn't appear as soon as add a pram tag

Status
Not open for further replies.

gregquinn

Programmer
Feb 11, 2002
23
ZA
Here is my html code for my activex control. It loads fine.

<OBJECT ID=&quot;GregControl&quot;
CLASSID=&quot;CLSID:A356808F-A9C1-4D9A-B967-B4D03A0EBC9B&quot;
CODEBASE=&quot;TestProject.CAB#version=1,0,0,0&quot;>
<param name=&quot;myParam&quot; value=&quot;1&quot;>
</OBJECT>

But as soon as I add a param tag, the control no longer appears on the page... why does this happen????
 
The param you your tag, does this action:
GregControl.myParam = 1

So, what does this action do?

Ion Filipski
1c.bmp
 
The action is supposed to set the value of a textbox in the activex control.

But then control disappeared.

I then created a dummy param, that does no action to the control, and still the control does not show.

It seems like any param added causes control to dissapear

 
it seems like you try to set some param which the control does not support.

Ion Filipski
1c.bmp
 
Well here is the code in my ActiveX control. I am trying to set the value of lblHello in ActiveX from the value of the

<PARAM NAME='MyHello' VALUE=&quot;Hello&quot;>

Parameter in the HTML page.

Here is the code for my ActiveX... It doesn't matter what param I put, as soon as I put a PARAM the control dissapears.

Public Property Get MyHello() As String
MyHello = lblHello.Caption
End Property

Public Property Let MyHello(New_MyHello As String)
lblHello.Caption() = New_MyHello
PropertyChanged &quot;MyHello&quot;
End Property

'Load property values from storage
Private Sub UserControl1_ReadProperties(PropBag As PropertyBag)

lblHello.Caption = PropBag.ReadProperty(&quot;MyHello&quot;, &quot;Nothing Here&quot;)
End Sub

'Write property values to storage
Private Sub UserControl1_WriteProperties(PropBag As PropertyBag)

Call PropBag.WriteProperty(&quot;MyHello&quot;, lblHello.Caption, &quot;Nothing Here&quot;)
End Sub
 
Okay not to worry. The control appears if I add widht and height tags to the OBJECT tag.

wierd hey?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top