home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual BASIC 5.0 (Ent. Edition) / Vb5ent Extractor.EXE / VB / SAMPLES / COMPTOOL / ACTVCOMP / ACTXDOC / SECNDDOC.DOB < prev   
Encoding:
Text File  |  1996-09-16  |  1.4 KB  |  51 lines

  1. VERSION 5.00
  2. Begin VB.UserDocument SecndDoc 
  3.    ClientHeight    =   3600
  4.    ClientLeft      =   0
  5.    ClientTop       =   0
  6.    ClientWidth     =   4800
  7.    HScrollSmallChange=   225
  8.    ScaleHeight     =   3600
  9.    ScaleWidth      =   4800
  10.    VScrollSmallChange=   225
  11.    Begin VB.CommandButton cmdGoBack 
  12.       Caption         =   "Go Back"
  13.       Height          =   495
  14.       Left            =   240
  15.       TabIndex        =   1
  16.       Top             =   960
  17.       Width           =   1215
  18.    End
  19.    Begin VB.Label lblCaption 
  20.       Caption         =   "SecndDoc"
  21.       Height          =   495
  22.       Left            =   240
  23.       TabIndex        =   0
  24.       Top             =   120
  25.       Width           =   3975
  26.    End
  27. End
  28. Attribute VB_Name = "SecndDoc"
  29. Attribute VB_GlobalNameSpace = False
  30. Attribute VB_Creatable = True
  31. Attribute VB_PredeclaredId = False
  32. Attribute VB_Exposed = True
  33. Option Explicit
  34.  
  35. Private Sub cmdGoBack_Click()
  36.     ' Go back to the FristDoc ActiveX document.
  37.    UserDocument.Hyperlink.GoBack
  38. End Sub
  39.  
  40. Private Sub UserDocument_Show()
  41.     ' Test to see if the global variable is set
  42.     ' to a reference. If it is, then set the
  43.     ' Caption property using the strDocProp property.
  44.     ' IMPORTANT: release the reference afterwards
  45.     ' by setting it to the keyword "Nothing."
  46.     If Not gFirstDoc Is Nothing Then
  47.        lblCaption.Caption = gFirstDoc.strDocProp
  48.        Set gFirstDoc = Nothing
  49.     End If
  50. End Sub
  51.