@@ -5,18 +5,34 @@ Begin VB.Form Form1
55 ClientLeft = 60
66 ClientTop = 450
77 ClientWidth = 7695
8+ Icon = "Form1.frx" :0000
89 LinkTopic = "Form1"
910 ScaleHeight = 6015
1011 ScaleWidth = 7695
1112 StartUpPosition = 3 'Windows-Standard
13+ Begin VB.TextBox TxtFileName
14+ Height = 285
15+ Left = 1920
16+ TabIndex = 0
17+ Top = 120
18+ Width = 5775
19+ End
1220 Begin VB.CommandButton BtnFileVersion
1321 Caption = "GetVersionInfo"
1422 Height = 375
15- Left = 0
23+ Left = 360
1624 TabIndex = 2
1725 Top = 120
1826 Width = 1575
1927 End
28+ Begin VB.CommandButton BtnInfo
29+ Caption = "?"
30+ Height = 375
31+ Left = 0
32+ TabIndex = 3
33+ Top = 120
34+ Width = 375
35+ End
2036 Begin VB.TextBox TxtFileVersionInfo
2137 BeginProperty Font
2238 Name = "Consolas"
@@ -30,18 +46,13 @@ Begin VB.Form Form1
3046 Height = 5415
3147 Left = 0
3248 MultiLine = -1 'True
49+ OLEDragMode = 1 'Automatisch
50+ OLEDropMode = 1 'Manuell
3351 ScrollBars = 3 'Beides
3452 TabIndex = 1
3553 Top = 600
3654 Width = 7695
3755 End
38- Begin VB.TextBox TxtFileName
39- Height = 285
40- Left = 1560
41- TabIndex = 0
42- Top = 120
43- Width = 6135
44- End
4556End
4657Attribute VB_Name = "Form1"
4758Attribute VB_GlobalNameSpace = False
@@ -51,6 +62,11 @@ Attribute VB_Exposed = False
5162Option Explicit
5263Private FileVersionInfo As New FileVersionInfo
5364
65+ Private Sub BtnInfo_Click ()
66+ MsgBox App.CompanyName & " " & App.ProductName & " v" & App.Major & "." & App.Minor & "." & App.Revision & vbCrLf & _
67+ App.FileDescription & vbCrLf & "Hint: " & App.Comments, vbInformation
68+ End Sub
69+
5470Private Sub Form_Load ()
5571 TxtFileName.Text = "C:\Windows\System32\kernel32.dll"
5672End Sub
@@ -85,3 +101,15 @@ Private Sub TxtFileName_KeyUp(KeyCode As Integer, Shift As Integer)
85101 End If
86102End Sub
87103
104+ Private Sub TxtFileName_OLEDragDrop (Data As DataObject , Effect As Long , Button As Integer , Shift As Integer , X As Single , Y As Single )
105+ TxtOLEDragDrop Data, Effect, Button, Shift, X, Y
106+ End Sub
107+ Private Sub TxtFileVersionInfo_OLEDragDrop (Data As DataObject , Effect As Long , Button As Integer , Shift As Integer , X As Single , Y As Single )
108+ TxtOLEDragDrop Data, Effect, Button, Shift, X, Y
109+ End Sub
110+ Private Sub TxtOLEDragDrop (Data As DataObject , Effect As Long , Button As Integer , Shift As Integer , X As Single , Y As Single )
111+ If Data.Files.Count = 0 Then Exit Sub
112+ Dim FNm As String : FNm = Data.Files(1 )
113+ TxtFileName.Text = FNm
114+ BtnFileVersion_Click
115+ End Sub
0 commit comments