vbAccelerator - Contents of code file: frmGetShellLinkFilename.frmVERSION 5.00
Begin VB.Form frmShellLinkName
Caption = "vbAccelerator: SHGetNewLinkInfo Demonstration"
ClientHeight = 3870
ClientLeft = 2190
ClientTop = 2505
ClientWidth = 5835
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "frmGetShellLinkFilename.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3870
ScaleWidth = 5835
Begin VB.TextBox txtLinkname
Height = 375
Left = 1440
TabIndex = 5
Top = 1980
Width = 4290
End
Begin VB.TextBox txtDir
Height = 375
Left = 1440
TabIndex = 3
Top = 540
Width = 4290
End
Begin VB.CommandButton cmdGetFilename
Caption = "Get Link &Name"
Height = 555
Left = 1440
TabIndex = 2
Top = 1080
Width = 1455
End
Begin VB.TextBox txtFile
Height = 375
Left = 1440
TabIndex = 1
Text = "C:\Program Files\Microsoft Visual
Studio\VB98\VB6.exe"
Top = 60
Width = 4290
End
Begin VB.Label lblLinkname
Caption = "Suggested Link name:"
Height = 495
Left = 180
TabIndex = 6
Top = 2040
Width = 1215
End
Begin VB.Label lblDir
Caption = "Directory to create in:"
Height = 435
Left = 180
TabIndex = 4
Top = 600
Width = 1215
End
Begin VB.Label lblFile
Caption = "File to link to:"
Height = 315
Left = 180
TabIndex = 0
Top = 120
Width = 1215
End
End
Attribute VB_Name = "frmShellLinkName"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdGetFilename_Click()
Dim sFile As String
txtLinkname.Text = NewLinkFilename( _
txtFile.Text, txtDir.Text)
End Sub
Private Sub Form_Load()
txtDir.Text = App.Path
End Sub
|
|