9. Creating a User Defined ActiveX
Control
2.
ActiveX
Control placed
in
ActiveX
Control
Pad:
Open
the
Microsoft
ActiveX
Control
Pad
from
the
Program
List. It
will
present
a
blank
HTML
form
. Select
‘insert’
from
the
Edit
menu. You
will
get
the
list
of
ActiveX
Controls
in
the
alphabetical
order
as
shown
in
the
figure
6. Click
the
control
rproj.rform. The
control
window
and
the
property
window
will
appear
on
the
screen
as
shown
in
the
figure
7. Close
the
two
windows.

Figure
6

Figure
7
You
will
find
the
code
for
the
ActiveX
control
written
between
two
object
tags
as
shown
in
the
figure
8.
Save
the
html
file
as
rr.htm
in
the
desktop
directory. Close
the
ActiveX
control
pad. Click
the
icon
rr
which
you
see
in
the
opening
window. Immediately
Internet
Explorer
will
be
opened
and
give
a
warning
message ‘An
ActiveX
object
on
this
page
may
be
unsafe.
Do
you
want
to
allow
it
to
be
initialize
and
be
accessed
by
script’. Press
Yes. The
ActiveX
control
in
dynamic
mode
will
be
displayed
in
it. You
can
now
play
with
the
directories
and
files
and
display
an
image
in
the
picture
box
as
shown
in
the
figure
9.

Figure
8

Figure
9
   |