11.
Creating ActiveX Documents
Establishing
Hyperlinks
between
two
VB
documents:
Create
two
VB
documents
rrdform1.vbd
and
rrdform2.vbd
as
shown
in
the
figures
10
and
11
respy. Each
document
contains
a
text
box
and
a
command
button. They
are
captioned
as
shown
in
the
figures.
The
code
for
each
of
the
buttons
must
be
entered
in
their
respective
code
windows
as
shown
in
the
figures
10a
and
11a. Save
the
files. Open
the
first
file
rrdform1.vbd in
the
Internet
Explorer. When
you
click
the
button,
the
second
file
is
opened. When
you
click
the
button
in
the
second
file
the
first
file
is
opened.
Hyperlinking
documents
enables
one
to
navigate
through
different
documents
very
quickly.
Private
Sub
Command1_Click()
UserDocument.Hyperlink.NavigateTo
"c:\vbproj\rrdform2.vbd"
End
Sub
Figure
10a
Private
Sub
Command1_Click()
UserDocument.Hyperlink.NavigateTo
"c:\vbproj\rrdform1.vbd"
End
Sub
Figure
11a

Figure
10

Figure
11
   |