Skip to content

Commit

Permalink
Allow closing app on Esc keypress. Also fix compilation due to nonexi…
Browse files Browse the repository at this point in the history
…stant path.
  • Loading branch information
Admin authored and Admin committed Mar 22, 2023
1 parent 98ddc59 commit 28216f0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
1 change: 1 addition & 0 deletions Form1.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
My.Computer.Clipboard.SetText(TextBox1.Text)
End If
End Sub

Private Sub Form1_KeyDown(sender As Object, e As KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.Escape Then Me.Close()
End Sub
End Class
10 changes: 0 additions & 10 deletions My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions My Project/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,4 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="envvar" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\..\..\..\..\..\srv03rtm\shell\cpls\system\envvar.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

0 comments on commit 28216f0

Please sign in to comment.