Skip to content

Commit 4af22f6

Browse files
committed
Initial commit
0 parents  commit 4af22f6

66 files changed

Lines changed: 6989 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
# Auto detect text files and perform LF normalization
3+
* text=auto
4+
5+
# Explicitly declare text files you want to always be normalized and converted
6+
# to native line endings on checkout.
7+
# none
8+
9+
# Declare files that will always have CRLF line endings on checkout.
10+
*.frm text eol=crlf
11+
*.cls text eol=crlf
12+
*.bas text eol=crlf
13+
*.ctl text eol=crlf
14+
*.vbp text eol=crlf
15+
*.vbw text eol=crlf
16+
*.mak text eol=crlf
17+
*.vbg text eol=crlf
18+
*.vb text eol=crlf
19+
*.cs text eol=crlf
20+
*.rc text eol=crlf
21+
*.txt text eol=crlf
22+
*.bat text eol=crlf
23+
*.scc text eol=crlf
24+
*.ps1 text eol=crlf
25+
*.h text eol=crlf
26+
*.manifest text eol=crlf
27+
*.html text eol=crlf
28+
29+
# Denote all files that are truly binary and should not be modified.
30+
*.frx binary
31+
*.png binary
32+
*.jpg binary
33+
*.bmp binary
34+
*.ico binary
35+
*.zip binary
36+
*.dll binary
37+
*.exe binary
38+
*.ocx binary
39+
*.tlb binary
40+
*.res binary
41+
*.exp binary
42+
*.lib binary
43+
*.xls binary
44+
*.xlsm binary
45+
*.doc binary
46+
*.docx binary
47+
*.syx binary

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Exclude binary files
2+
*.exe
3+
*.dll
4+
*.ocx
5+
*.zip
6+
7+
# Exclude user-specific files
8+
*.vbw
9+
Thumbs.db

Classes/FileVersionInfo.cls

Lines changed: 461 additions & 0 deletions
Large diffs are not rendered by default.

Forms/Form1.frm

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
VERSION 5.00
2+
Begin VB.Form Form1
3+
Caption = "Form1"
4+
ClientHeight = 6015
5+
ClientLeft = 60
6+
ClientTop = 450
7+
ClientWidth = 7695
8+
LinkTopic = "Form1"
9+
ScaleHeight = 6015
10+
ScaleWidth = 7695
11+
StartUpPosition = 3 'Windows-Standard
12+
Begin VB.CommandButton BtnFileVersion
13+
Caption = "GetVersionInfo"
14+
Height = 375
15+
Left = 0
16+
TabIndex = 2
17+
Top = 120
18+
Width = 1575
19+
End
20+
Begin VB.TextBox TxtFileVersionInfo
21+
BeginProperty Font
22+
Name = "Consolas"
23+
Size = 9.75
24+
Charset = 0
25+
Weight = 400
26+
Underline = 0 'False
27+
Italic = 0 'False
28+
Strikethrough = 0 'False
29+
EndProperty
30+
Height = 5415
31+
Left = 0
32+
MultiLine = -1 'True
33+
ScrollBars = 3 'Beides
34+
TabIndex = 1
35+
Top = 600
36+
Width = 7695
37+
End
38+
Begin VB.TextBox TxtFileName
39+
Height = 285
40+
Left = 1560
41+
TabIndex = 0
42+
Top = 120
43+
Width = 6135
44+
End
45+
End
46+
Attribute VB_Name = "Form1"
47+
Attribute VB_GlobalNameSpace = False
48+
Attribute VB_Creatable = False
49+
Attribute VB_PredeclaredId = True
50+
Attribute VB_Exposed = False
51+
Option Explicit
52+
Private FileVersionInfo As New FileVersionInfo
53+
54+
Private Sub Form_Load()
55+
TxtFileName.Text = "C:\Windows\System32\kernel32.dll"
56+
End Sub
57+
58+
Private Sub BtnFileVersion_Click()
59+
Try: On Error GoTo Catch
60+
Dim VI As FileVersionInfo: Set VI = MNew.FileVersionInfo(TxtFileName.Text)
61+
TxtFileVersionInfo.Text = VI.ToStr
62+
Exit Sub
63+
Catch:
64+
MsgBox ("Probably file not found")
65+
End Sub
66+
67+
Private Sub Form_Resize()
68+
Dim L As Single, T As Single, W As Single, H As Single
69+
Dim Brdr As Single ': Brdr = 8 * 15
70+
L = TxtFileName.Left
71+
T = TxtFileName.Top
72+
W = Form1.ScaleWidth - Brdr - L
73+
H = TxtFileName.Height
74+
If ((W > 0) And (H > 0)) Then Call TxtFileName.Move(L, T, W, H)
75+
L = TxtFileVersionInfo.Left
76+
T = TxtFileVersionInfo.Top
77+
W = Form1.ScaleWidth - Brdr - L
78+
H = Form1.ScaleHeight - Brdr - T
79+
If ((W > 0) And (H > 0)) Then Call TxtFileVersionInfo.Move(L, T, W, H)
80+
End Sub
81+
82+
Private Sub TxtFileName_KeyUp(KeyCode As Integer, Shift As Integer)
83+
If KeyCode = vbEnter Then
84+
BtnFileVersion_Click
85+
End If
86+
End Sub
87+

0 commit comments

Comments
 (0)