home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{B190576C-254A-11D2-B61E-C80424DEEF17}#51.0#0"; "LCocx.ocx"
- Begin VB.Form form1
- BorderStyle = 1 'Fixed Single
- Caption = "Shell Execute"
- ClientHeight = 2088
- ClientLeft = 36
- ClientTop = 324
- ClientWidth = 5172
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2088
- ScaleWidth = 5172
- StartUpPosition = 2 'CenterScreen
- Begin LCocx98.LCocx LCocx1
- Left = 4680
- Top = 1680
- _ExtentX = 656
- _ExtentY = 656
- End
- Begin VB.CommandButton cmdweb
- Caption = "Web"
- Height = 372
- Left = 360
- TabIndex = 2
- Top = 1320
- Width = 972
- End
- Begin VB.CommandButton cmdemail
- Caption = "Email"
- Height = 372
- Left = 360
- TabIndex = 1
- Top = 840
- Width = 972
- End
- Begin VB.CommandButton cmdtext
- Caption = "Text"
- Height = 372
- Left = 360
- TabIndex = 0
- Top = 360
- Width = 972
- End
- Begin VB.Label Label4
- AutoSize = -1 'True
- Caption = "Process ID or Error Found"
- Height = 192
- Left = 2040
- TabIndex = 6
- Top = 120
- Width = 1848
- End
- Begin VB.Label Label3
- AutoSize = -1 'True
- Caption = "Label3"
- Height = 192
- Left = 1560
- TabIndex = 5
- Top = 1560
- Width = 492
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "Label2"
- Height = 192
- Left = 1560
- TabIndex = 4
- Top = 1020
- Width = 492
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Label1"
- Height = 192
- Left = 1560
- TabIndex = 3
- Top = 480
- Width = 492
- End
- Attribute VB_Name = "form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdemail_Click()
- ret2 = LCocx1.Execute("mailto:lc-enterprises@usa.net")
- 'or ret = LCocx1.Execute("mailto:lc-enterprises@usa.net?Subject=Hello") 'would fill the subject with the word "Hello"
- Label2 = ret2
- 'the function returns the Porcess ID or the error found
- End Sub
- Private Sub cmdtext_Click()
- Dim FileName As String
- FileName = InputBox("Please Enter the Path and the Name of the File to Open", , "C:\")
- ret1 = LCocx1.Execute(FileName)
- 'If the file is not found or doesn't have an association
- 'nothing happens
- Label1 = ret1
- 'the function returns the Porcess ID or the error found
- End Sub
- Private Sub cmdweb_Click()
- ret3 = LCocx1.Execute("http://send-a-teddy.com/lc")
- 'The Internet address MUST have the prefix "http://" or "ftp://"
- 'in order to work
- Label3 = ret3
- 'the function returns the Porcess ID or the error found
- End Sub
-