Skip to content

Commit eed886d

Browse files
committed
added btninfo
1 parent 44ec608 commit eed886d

3 files changed

Lines changed: 44 additions & 11 deletions

File tree

Forms/Form1.frm

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
4556
End
4657
Attribute VB_Name = "Form1"
4758
Attribute VB_GlobalNameSpace = False
@@ -51,6 +62,11 @@ Attribute VB_Exposed = False
5162
Option Explicit
5263
Private 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+
5470
Private Sub Form_Load()
5571
TxtFileName.Text = "C:\Windows\System32\kernel32.dll"
5672
End Sub
@@ -85,3 +101,15 @@ Private Sub TxtFileName_KeyUp(KeyCode As Integer, Shift As Integer)
85101
End If
86102
End 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

Forms/Form1.frx

5.88 KB
Binary file not shown.

PFileVersionInfo.vbp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Form=Forms\Form1.frm
44
Class=FileVersionInfo; Classes\FileVersionInfo.cls
55
Module=MNew; Modules\MNew.bas
66
ResFile32="Resources\MyRes.res"
7+
IconForm="Form1"
78
Startup="Form1"
89
HelpFile=""
910
Title="FileVersionInfo"
@@ -13,11 +14,15 @@ Name="PFileVersionInfo"
1314
HelpContextID="0"
1415
CompatibleMode="0"
1516
MajorVer=1
16-
MinorVer=0
17-
RevisionVer=0
18-
AutoIncrementVer=0
17+
MinorVer=2
18+
RevisionVer=5
19+
AutoIncrementVer=1
1920
ServerSupportFiles=0
21+
VersionComments="Drag'n'drop files onto the form"
2022
VersionCompanyName="MBO-Ing.com"
23+
VersionFileDescription="Reads version informations from compiled files, exe or dlls"
24+
VersionLegalCopyright="MBO-Ing.com"
25+
VersionProductName="FileVersionInfo"
2126
CompilationType=0
2227
OptimizationType=0
2328
FavorPentiumPro(tm)=0

0 commit comments

Comments
 (0)