home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "Module1"
- Private Sub Command1_Click()
- On Error GoTo ErrorHandler
- Dim S
- Dim T
- T = Combo1.Text
- S = Shell(T, 1)
- Exit Sub
- ErrorHandler:
- MsgBox "Please type in a correct executable file.", vbOKOnly
- Combo1.SetFocus
- End Sub
-
- Private Sub Command2_Click()
- ' Unload Me
- MDIForm1.SetFocus
- End Sub
-
- Private Sub Command3_Click()
- MsgBox "No Help Topic is associated with this dialog", vbOKOnly
- End Sub
-
- Private Sub Form_Load()
- ' Width = 0.4 * Screen.Width
- ' Height = 0.23 * Screen.Height
- ' Left = (Screen.Width - Width) / 2
- ' Top = (Screen.Height - Height) / 2
- ' Combo1.AddItem "Explorer"
- ' Combo1.AddItem "Notepad"
- ' Combo1.AddItem "Sol"
- End Sub
-
-
-
-