L
Leo sailer
Hi,
The point is the following I need to add ActiveX control dinamically in a
Webform. Currently I'm doing this using a literal control and "writing the
HTML Code" for example:
lit.Text = "<OBJECT id=Dtpicker1 name=Dtpicker1 height=24 width=90%
align=center classid='clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1' " >" & _
"<PARAM NAME='OLEDropMode' VALUE='0'>" & _
"<PARAM NAME='CalendarBackColor' VALUE='-2147483643'>" & _
"<PARAM NAME='CalendarForeColor' VALUE='-2147483630'>" & _
"<PARAM NAME='CalendarTitleBackColor' VALUE='-2147483633'>" & _
"<PARAM NAME='CalendarTitleForeColor' VALUE='-2147483630'>" & _
"<PARAM NAME='CalendarTrailingForeColor' VALUE='-2147483631'>" & _
"<PARAM NAME='CurrentDate' VALUE='3445565'>" & _
"<PARAM NAME='UpDown' VALUE='1'>" & _
"<PARAM NAME='MaxDate' VALUE='2958465'>" & _
"<PARAM NAME='MinDate' VALUE='-109205'>" & _
"</OBJECT>"
controls.add(lit).
It works but I want something cleaner, such as using AXHost, but that I can
added as a Web control, for example:
Dim AxDTPicker as new mscomct2.DateTimepicker
AxDTPicker.value = '3445565'
Controls.add(AxDTPicker)
Is any other way to add ActiveX controls dinamically ?
Thnaks
The point is the following I need to add ActiveX control dinamically in a
Webform. Currently I'm doing this using a literal control and "writing the
HTML Code" for example:
lit.Text = "<OBJECT id=Dtpicker1 name=Dtpicker1 height=24 width=90%
align=center classid='clsid:20DD1B9E-87C4-11D1-8BE3-0000F8754DA1' " >" & _
"<PARAM NAME='OLEDropMode' VALUE='0'>" & _
"<PARAM NAME='CalendarBackColor' VALUE='-2147483643'>" & _
"<PARAM NAME='CalendarForeColor' VALUE='-2147483630'>" & _
"<PARAM NAME='CalendarTitleBackColor' VALUE='-2147483633'>" & _
"<PARAM NAME='CalendarTitleForeColor' VALUE='-2147483630'>" & _
"<PARAM NAME='CalendarTrailingForeColor' VALUE='-2147483631'>" & _
"<PARAM NAME='CurrentDate' VALUE='3445565'>" & _
"<PARAM NAME='UpDown' VALUE='1'>" & _
"<PARAM NAME='MaxDate' VALUE='2958465'>" & _
"<PARAM NAME='MinDate' VALUE='-109205'>" & _
"</OBJECT>"
controls.add(lit).
It works but I want something cleaner, such as using AXHost, but that I can
added as a Web control, for example:
Dim AxDTPicker as new mscomct2.DateTimepicker
AxDTPicker.value = '3445565'
Controls.add(AxDTPicker)
Is any other way to add ActiveX controls dinamically ?
Thnaks