home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / sgwnd10 / frmtest8.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-07-24  |  1.4 KB  |  47 lines

  1. VERSION 5.00
  2. Begin VB.Form frmTest8 
  3.    AutoRedraw      =   -1  'True
  4.    BorderStyle     =   0  'None
  5.    ClientHeight    =   2796
  6.    ClientLeft      =   0
  7.    ClientTop       =   0
  8.    ClientWidth     =   3504
  9.    ControlBox      =   0   'False
  10.    LinkTopic       =   "Form2"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   2796
  14.    ScaleWidth      =   3504
  15.    ShowInTaskbar   =   0   'False
  16.    Begin VB.CommandButton cmdDestroy 
  17.       Caption         =   "Command1"
  18.       Height          =   432
  19.       Left            =   120
  20.       TabIndex        =   0
  21.       Top             =   600
  22.       Width           =   3252
  23.    End
  24.    Begin VB.Label Label1 
  25.       Alignment       =   2  'Center
  26.       Caption         =   "Clicking on this button will destroy selected window."
  27.       Height          =   372
  28.       Left            =   120
  29.       TabIndex        =   1
  30.       Top             =   120
  31.       Width           =   3132
  32.    End
  33. Attribute VB_Name = "frmTest8"
  34. Attribute VB_GlobalNameSpace = False
  35. Attribute VB_Creatable = False
  36. Attribute VB_PredeclaredId = True
  37. Attribute VB_Exposed = False
  38. Option Explicit
  39. Public Sub RefreshState()
  40.    Dim w As sgWindow.Window
  41.    Set w = frmMain.g_wndTest
  42.    cmdDestroy.Caption = "Destroy '" & frmMain.GetWindowDescription(w) & "'"
  43. End Sub
  44. Private Sub cmdDestroy_Click()
  45.    frmMain.g_wndTest.Destroy
  46. End Sub
  47.