Skip to content

Instantly share code, notes, and snippets.

@daddycocoaman
Created September 19, 2019 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daddycocoaman/8587134879dc16e1178315820ab81060 to your computer and use it in GitHub Desktop.
Save daddycocoaman/8587134879dc16e1178315820ab81060 to your computer and use it in GitHub Desktop.
Because netCAT exists.
/* Creates a "uncloseable" form window with an ASCII cat. It's SO Cat!
Author: Daddycocoaman */
import System.Windows.Forms
import System.Drawing
SOCAT = """
|\__/,| (`\
|o o |__ _)
_.( T ) ` /
((_ `^--' /_< \
`` `-'(((/ (((/
"""
def CancelHandler(sender as object, e as FormClosingEventArgs):
e.Cancel = true
form = Form()
label = Label()
label.Text = SOCAT
label.Font = Font("Arial", 24, FontStyle.Bold)
label.Width = 800
label.Height = 400
form.Controls.Add(label)
form.Controls.Add(label)
form.FormClosing += FormClosingEventHandler(CancelHandler)
form.ShowDialog()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment