home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / nivb / misc.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-05-07  |  1.4 KB  |  49 lines

  1. VERSION 2.00
  2. Begin Form MiscForm 
  3.    Caption         =   "Miscellaneous Services Test"
  4.    ClientHeight    =   1980
  5.    ClientLeft      =   1530
  6.    ClientTop       =   1965
  7.    ClientWidth     =   3240
  8.    Height          =   2385
  9.    Left            =   1470
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   1980
  12.    ScaleWidth      =   3240
  13.    Top             =   1620
  14.    Width           =   3360
  15.    Begin CommandButton OKButton 
  16.       Caption         =   "&OK"
  17.       Height          =   375
  18.       Left            =   1200
  19.       TabIndex        =   0
  20.       Top             =   1440
  21.       Width           =   855
  22.    End
  23.    Begin Label SerialNumberLabel 
  24.       Height          =   255
  25.       Left            =   1200
  26.       TabIndex        =   2
  27.       Top             =   840
  28.       Width           =   1575
  29.    End
  30.    Begin Label Label1 
  31.       Caption         =   "Network serial number:"
  32.       Height          =   255
  33.       Left            =   360
  34.       TabIndex        =   1
  35.       Top             =   360
  36.       Width           =   2535
  37.    End
  38. Sub Form_Load ()
  39.     ccode% = GetNetworkSerialNumber(serialNumber&, appNumber%)
  40.     If (ccode% = SUCCESSFUL) Then
  41.         SerialNumberLabel.Caption = Str$(serialNumber&)
  42.     Else
  43.         SerialNumberLabel.Caption = "Unable to obtain"
  44.     End If
  45. End Sub
  46. Sub OKButton_Click ()
  47.     Unload MiscForm
  48. End Sub
  49.