Skip to content

Commit 004ab7e

Browse files
committed
3.3.0.0
1 parent 0179b29 commit 004ab7e

9 files changed

Lines changed: 121 additions & 75 deletions

File tree

Main.ico

800 KB
Binary file not shown.

OpenWithPPGUI/Main.ico

800 KB
Binary file not shown.

OpenWithPPGUI/MainForm.vb

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Public Class MainForm
6767
Friend WithEvents bnIcon As Button
6868
Friend WithEvents tbIcon As TextBox
6969
Friend WithEvents laIcon As Label
70+
Friend WithEvents cbHidden As CheckBox
7071
Friend WithEvents tsMain As System.Windows.Forms.ToolStrip
7172
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
7273
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(MainForm))
@@ -98,6 +99,7 @@ Public Class MainForm
9899
Me.bnArguments = New System.Windows.Forms.Button()
99100
Me.PropsFlowLayoutPanel = New System.Windows.Forms.FlowLayoutPanel()
100101
Me.cbHideWindow = New System.Windows.Forms.CheckBox()
102+
Me.cbHidden = New System.Windows.Forms.CheckBox()
101103
Me.tlpMain = New System.Windows.Forms.TableLayoutPanel()
102104
Me.FlowLayoutPanel1 = New System.Windows.Forms.FlowLayoutPanel()
103105
Me.tlpSearch = New System.Windows.Forms.TableLayoutPanel()
@@ -209,7 +211,7 @@ Public Class MainForm
209211
'
210212
'cbRunAsAdmin
211213
'
212-
Me.cbRunAsAdmin.Location = New System.Drawing.Point(25, 152)
214+
Me.cbRunAsAdmin.Location = New System.Drawing.Point(25, 218)
213215
Me.cbRunAsAdmin.Margin = New System.Windows.Forms.Padding(25, 3, 3, 3)
214216
Me.cbRunAsAdmin.Name = "cbRunAsAdmin"
215217
Me.cbRunAsAdmin.Size = New System.Drawing.Size(600, 60)
@@ -227,7 +229,7 @@ Public Class MainForm
227229
Me.lv.Margin = New System.Windows.Forms.Padding(18, 0, 0, 0)
228230
Me.lv.Name = "lv"
229231
Me.tlpMain.SetRowSpan(Me.lv, 6)
230-
Me.lv.Size = New System.Drawing.Size(518, 815)
232+
Me.lv.Size = New System.Drawing.Size(518, 880)
231233
Me.lv.TabIndex = 1
232234
Me.lv.UseCompatibleStateImageBehavior = False
233235
'
@@ -392,25 +394,36 @@ Public Class MainForm
392394
Me.tlpMain.SetColumnSpan(Me.PropsFlowLayoutPanel, 3)
393395
Me.PropsFlowLayoutPanel.Controls.Add(Me.cbSubmenu)
394396
Me.PropsFlowLayoutPanel.Controls.Add(Me.cbDirectories)
397+
Me.PropsFlowLayoutPanel.Controls.Add(Me.cbHidden)
395398
Me.PropsFlowLayoutPanel.Controls.Add(Me.cbRunAsAdmin)
396399
Me.PropsFlowLayoutPanel.Controls.Add(Me.cbHideWindow)
397400
Me.PropsFlowLayoutPanel.FlowDirection = System.Windows.Forms.FlowDirection.TopDown
398401
Me.PropsFlowLayoutPanel.Location = New System.Drawing.Point(536, 643)
399402
Me.PropsFlowLayoutPanel.Margin = New System.Windows.Forms.Padding(0)
400403
Me.PropsFlowLayoutPanel.Name = "PropsFlowLayoutPanel"
401-
Me.PropsFlowLayoutPanel.Size = New System.Drawing.Size(1718, 350)
404+
Me.PropsFlowLayoutPanel.Size = New System.Drawing.Size(1718, 415)
402405
Me.PropsFlowLayoutPanel.TabIndex = 16
403406
'
404407
'cbHideWindow
405408
'
406-
Me.cbHideWindow.Location = New System.Drawing.Point(25, 218)
409+
Me.cbHideWindow.Location = New System.Drawing.Point(25, 284)
407410
Me.cbHideWindow.Margin = New System.Windows.Forms.Padding(25, 3, 3, 3)
408411
Me.cbHideWindow.Name = "cbHideWindow"
409412
Me.cbHideWindow.Size = New System.Drawing.Size(600, 60)
410413
Me.cbHideWindow.TabIndex = 2
411414
Me.cbHideWindow.Text = "Run hidden"
412415
Me.cbHideWindow.UseVisualStyleBackColor = True
413416
'
417+
'cbHidden
418+
'
419+
Me.cbHidden.Location = New System.Drawing.Point(25, 152)
420+
Me.cbHidden.Margin = New System.Windows.Forms.Padding(25, 3, 3, 3)
421+
Me.cbHidden.Name = "cbHidden"
422+
Me.cbHidden.Size = New System.Drawing.Size(600, 60)
423+
Me.cbHidden.TabIndex = 3
424+
Me.cbHidden.Text = "Show only if Ctrl key is pressed"
425+
Me.cbHidden.UseVisualStyleBackColor = True
426+
'
414427
'tlpMain
415428
'
416429
Me.tlpMain.ColumnCount = 4
@@ -453,7 +466,7 @@ Public Class MainForm
453466
Me.tlpMain.RowStyles.Add(New System.Windows.Forms.RowStyle())
454467
Me.tlpMain.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100.0!))
455468
Me.tlpMain.RowStyles.Add(New System.Windows.Forms.RowStyle())
456-
Me.tlpMain.Size = New System.Drawing.Size(2254, 1104)
469+
Me.tlpMain.Size = New System.Drawing.Size(2254, 1169)
457470
Me.tlpMain.TabIndex = 17
458471
'
459472
'FlowLayoutPanel1
@@ -464,7 +477,7 @@ Public Class MainForm
464477
Me.tlpMain.SetColumnSpan(Me.FlowLayoutPanel1, 2)
465478
Me.FlowLayoutPanel1.Controls.Add(Me.bnOK)
466479
Me.FlowLayoutPanel1.Controls.Add(Me.bnCancel)
467-
Me.FlowLayoutPanel1.Location = New System.Drawing.Point(1758, 993)
480+
Me.FlowLayoutPanel1.Location = New System.Drawing.Point(1758, 1058)
468481
Me.FlowLayoutPanel1.Margin = New System.Windows.Forms.Padding(0)
469482
Me.FlowLayoutPanel1.Name = "FlowLayoutPanel1"
470483
Me.FlowLayoutPanel1.Size = New System.Drawing.Size(496, 111)
@@ -564,7 +577,7 @@ Public Class MainForm
564577
'
565578
Me.AutoScaleDimensions = New System.Drawing.SizeF(288.0!, 288.0!)
566579
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi
567-
Me.ClientSize = New System.Drawing.Size(2254, 1104)
580+
Me.ClientSize = New System.Drawing.Size(2254, 1169)
568581
Me.Controls.Add(Me.tlpMain)
569582
Me.Font = New System.Drawing.Font("Segoe UI", 9.0!)
570583
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
@@ -676,8 +689,14 @@ Public Class MainForm
676689
Sub tbFileTypes_TextChanged(sender As Object, e As EventArgs) Handles tbFileTypes.TextChanged
677690
If Not BlockEvents AndAlso Not SelectedItem Is Nothing Then
678691
Dim value = tbFileTypes.Text.ToLower
679-
If value.Contains(",") Then value = value.Replace(",", " ")
680-
If value.Contains(";") Then value = value.Replace(";", " ")
692+
693+
If value.Contains(",") Then
694+
value = value.Replace(",", " ")
695+
End If
696+
697+
If value.Contains(";") Then
698+
value = value.Replace(";", " ")
699+
End If
681700

682701
While value.Contains(" ")
683702
value = value.Replace(" ", " ")
@@ -806,6 +825,7 @@ Public Class MainForm
806825
cbDirectories.Checked = SelectedItem.Directories
807826
cbRunAsAdmin.Checked = SelectedItem.RunAsAdmin
808827
cbHideWindow.Checked = SelectedItem.HideWindow
828+
cbHidden.Checked = SelectedItem.Hidden
809829
Else
810830
PropsFlowLayoutPanel.Enabled = False
811831
tbArguments.Enabled = False
@@ -877,7 +897,7 @@ Public Class MainForm
877897
i.Name.ToLower.Contains(query) OrElse
878898
i.Path.ToLower.Contains(query) OrElse
879899
i.WorkingDirectory.ToLower.Contains(query) OrElse
880-
i.FileTypes.ToLower.Contains(query) OrElse
900+
i.FileTypesDisplay.ToLower.Contains(query) OrElse
881901
i.Arguments.ToLower.Contains(query) Then
882902

883903
lv.Items.Add(i.Name).Tag = i
@@ -972,6 +992,12 @@ Public Class MainForm
972992
End If
973993
End Sub
974994

995+
Private Sub cbHidden_CheckedChanged(sender As Object, e As EventArgs) Handles cbHidden.CheckedChanged
996+
If Not BlockEvents AndAlso Not SelectedItem Is Nothing Then
997+
SelectedItem.Hidden = cbHidden.Checked
998+
End If
999+
End Sub
1000+
9751001
Sub SetCue(tb As TextBox, value As String, hideWhenFocused As Boolean)
9761002
Const EM_SETCUEBANNER = &H1501
9771003
Native.SendMessage(tb.Handle, EM_SETCUEBANNER, If(hideWhenFocused, 0, 1), value)

OpenWithPPGUI/Misc.vb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Public Class Item
109109
Public FileTypes As String = ""
110110
Public FileTypesDisplay As String = ""
111111
Public HideWindow As Boolean
112+
Public Hidden As Boolean
112113
Public IconFile As String = ""
113114
Public IconIndex As Integer
114115
Public Name As String = ""

OpenWithPPGUI/My Project/AssemblyInfo.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Imports System.Runtime.InteropServices
2929
' You can specify all the values or you can default the Build and Revision Numbers
3030
' by using the '*' as shown below:
3131

32-
<Assembly: AssemblyVersion("3.2.0.0")>
33-
<Assembly: AssemblyFileVersion("3.2.0.0")>
32+
<Assembly: AssemblyVersion("3.3.0.0")>
33+
<Assembly: AssemblyFileVersion("3.3.0.0")>

OpenWithPPGUI/OpenWithPPGUI.vbproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<ProjectGuid>{352818B6-523C-4143-9BB6-9C263E73D0A6}</ProjectGuid>
88
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
99
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
10-
<ApplicationIcon>
11-
</ApplicationIcon>
10+
<ApplicationIcon>Main.ico</ApplicationIcon>
1211
<AssemblyKeyContainerName>
1312
</AssemblyKeyContainerName>
1413
<AssemblyName>OpenWithPPGUI</AssemblyName>
@@ -168,6 +167,9 @@
168167
</None>
169168
<None Include="My Project\app.manifest" />
170169
</ItemGroup>
170+
<ItemGroup>
171+
<Content Include="Main.ico" />
172+
</ItemGroup>
171173
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.targets" />
172174
<PropertyGroup>
173175
<PreBuildEvent>

0 commit comments

Comments
 (0)