home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / dsl100 / dsl.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-12-05  |  2.6 KB  |  93 lines

  1. VERSION 2.00
  2. Begin Form dosshell 
  3.    BackColor       =   &H00FFFFFF&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "DSL"
  6.    ClientHeight    =   1590
  7.    ClientLeft      =   3765
  8.    ClientTop       =   1830
  9.    ClientWidth     =   1815
  10.    FontBold        =   0   'False
  11.    FontItalic      =   0   'False
  12.    FontName        =   "Times New Roman"
  13.    FontSize        =   8.25
  14.    FontStrikethru  =   0   'False
  15.    FontUnderline   =   0   'False
  16.    Height          =   1995
  17.    Icon            =   DSL.FRX:0000
  18.    Left            =   3705
  19.    LinkTopic       =   "Form1"
  20.    MaxButton       =   0   'False
  21.    MinButton       =   0   'False
  22.    ScaleHeight     =   1590
  23.    ScaleMode       =   0  'User
  24.    ScaleWidth      =   1815
  25.    Top             =   1485
  26.    Width           =   1935
  27.    Begin CommandButton EndShell 
  28.       Caption         =   "End"
  29.       Height          =   384
  30.       Left            =   1152
  31.       TabIndex        =   1
  32.       Top             =   1024
  33.       Width           =   512
  34.    End
  35.    Begin CommandButton Launch 
  36.       Caption         =   "Launch"
  37.       Height          =   384
  38.       Left            =   128
  39.       TabIndex        =   0
  40.       Top             =   1024
  41.       Width           =   900
  42.    End
  43.    Begin Label Fremem 
  44.       Alignment       =   2  'Center
  45.       Height          =   390
  46.       Left            =   15
  47.       TabIndex        =   3
  48.       Top             =   480
  49.       Width           =   1770
  50.    End
  51.    Begin Label WinMode 
  52.       Alignment       =   2  'Center
  53.       Height          =   300
  54.       Left            =   45
  55.       TabIndex        =   2
  56.       Top             =   60
  57.       Width           =   1740
  58.    End
  59. DefInt A-Z
  60. Declare Function GetFreeSpace Lib "Kernel" (ByVal wFlags) As Long
  61. Declare Function GetWinFlags Lib "Kernel" () As Long
  62. Sub EndShell_Click ()
  63.   End
  64. End Sub
  65. Sub Form_Load ()
  66.   winflags = GetWinFlags()
  67.   Select Case winflags And &H30
  68.   Case &H10
  69.     WinMode.Caption = "Standard Mode"
  70.   Case &H20
  71.     WinMode.Caption = "386 Enhanced Mode"
  72.   Case Else
  73.     WinMode.Caption = "UI [" + Hex$(winflags) + "] mode"
  74.   End Select
  75.   Fremem.Caption = Format$(GetFreeSpace(0), "###,###,###") + " bytes"
  76. End Sub
  77. Sub Launch_Click ()
  78.   X = Shell("command.com")
  79.   winflags = GetWinFlags()
  80.   Select Case winflags And &H30
  81.   Case &H10
  82.     WinMode.Caption = "Standard Mode"
  83.   Case &H20
  84.     WinMode.Caption = "386 Enhanced Mode"
  85.   Case Else
  86.     WinMode.Caption = "UI [" + Hex$(winflags) + "] mode"
  87.   End Select
  88.   Fremem.Caption = Format$(GetFreeSpace(0), "###,###,###") + " bytes"
  89. End Sub
  90. Sub Shellout_Click ()
  91.   X = Shell("C:\command.com")
  92. End Sub
  93.