home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Troubleshooting Netware Systems
/
CSTRIAL0196.BIN
/
attach
/
msj
/
v10n10
/
vb40.exe
/
SHELLVB.EXE
/
SHELLI~1.FRM
< prev
next >
Wrap
Text File
|
1995-10-01
|
4KB
|
146 lines
VERSION 4.00
Begin VB.Form Shellink
Caption = "MSJ Shellink Test"
ClientHeight = 4065
ClientLeft = 1545
ClientTop = 1620
ClientWidth = 6690
Height = 4470
Left = 1485
LinkTopic = "Form1"
ScaleHeight = 4065
ScaleWidth = 6690
Top = 1275
Width = 6810
Begin VB.CommandButton btnLinkBrowse
Caption = "Browse..."
Height = 375
Left = 5160
TabIndex = 10
Top = 600
Width = 975
End
Begin VB.CommandButton btnPathBrowse
Caption = "Browse..."
Height = 375
Left = 5160
TabIndex = 9
Top = 120
Width = 975
End
Begin VB.CheckBox chkDesktop
Caption = "On Desktop"
Height = 255
Left = 2400
TabIndex = 5
Top = 1080
Width = 2655
End
Begin VB.CommandButton btnResolve
Caption = "Resolve Link"
Height = 375
Left = 120
TabIndex = 4
Top = 600
Width = 1215
End
Begin VB.PictureBox picOutput
Height = 2295
Left = 120
ScaleHeight = 2205
ScaleWidth = 4845
TabIndex = 3
Top = 1680
Width = 4935
End
Begin VB.TextBox edtLink
Height = 285
Left = 2400
TabIndex = 2
Top = 600
Width = 2655
End
Begin VB.TextBox edtPath
Height = 285
Left = 2400
TabIndex = 1
Top = 120
Width = 2655
End
Begin VB.CommandButton btnCreate
Caption = "Create Link"
Height = 375
Left = 120
TabIndex = 0
Top = 120
Width = 1215
End
Begin MSComDlg.CommonDialog ComDlg
Left = 5640
Top = 1800
_version = 65536
_extentx = 847
_extenty = 847
_stockprops = 0
dialogtitle = "MSJ Shellink Tester"
End
Begin VB.Label Label3
Caption = "Output:"
Height = 255
Left = 120
TabIndex = 8
Top = 1320
Width = 735
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "Link:"
Height = 255
Left = 1680
TabIndex = 7
Top = 600
Width = 615
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "Real Path:"
Height = 255
Left = 1440
TabIndex = 6
Top = 120
Width = 855
End
Begin ShellinkLibCtl.Shellink slkLink
Left = 5640
Top = 1200
_version = 65536
_extentx = 873
_extenty = 873
_stockprops = 0
End
End
Attribute VB_Name = "Shellink"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Private Sub btnCreate_Click()
Dim a As Variant, b As Variant
edtLink.Text = slkLink.CreateLink(edtPath.Text, "Shortcut to " & edtPath.Text, chkDesktop.Value)
End Sub
Private Sub btnLinkBrowse_Click()
ComDlg.Action = 2 ' Save As dialog box
edtLink.Text = ComDlg.FileName
End Sub
Private Sub btnPathBrowse_Click()
ComDlg.Action = 1 ' Open File dialog box
edtPath.Text = ComDlg.FileName
End Sub
Private Sub btnResolve_Click()
edtPath.Text = slkLink.ResolveLink(picOutput.hWnd, edtLink.Text)
End Sub