Skip to content

mjsaiz/SamplesAndUtils

 
 

Repository files navigation

SamplesAndUtils

A large sum of projects consisting of sample code from tutorials, or small utilities. This is mostly older code refactored to an extent. If you expect to find something here but cannot, contact me. This code is posted here for browsability.

A Bit of Memory

A memory game that presents an increasingly long sequences of ones or zeros. The sequence must be inputted correctly. Once the sequence is entered incorrectly, the user must start from one bit again.

Advanced Browser

A browser that has bookmarks, tabs, history, view source, favicon, and save page functionality.

AopBenchmark

Compares the execution speed of two methods. Adjust the code of the BenchmarkCode1 and the BenchmarkCode2 to your likings.

AopCodeLibrary

A library of random code. Some of the extension methods may be useful here.

ControlAspectLocker: Locks the aspect ratio of controls so they cannot resize un-uniformly.
FormFader: Fades a Form to a specified opacity value at a specified speed.
MouseTracker: Provides two intersecting lines that follow the movements of a mouse on the specified control.
Moving Gradient: Animates a two-colored gradient across the specified control at the specified angle.
AopStopWatch: A simple stopwatch application that can start, pause, and reset. Right-click on the Form to change the time format.

Beeper

Plays music through the system console speakers. Has the ability to parse several different formats of musical notes. Right-click on the main textbox to load preset songs.

BullsEyeGraphics

A drawing demonstration that paints a bulls-eye on the Form.

Captcha Example

Demonstrates a captcha type control.

Eventing

Demonstrates how to use events.

FullscreenShot

Demonstrates an application that has only a context menu and notify icon for a UI. Click the system tray icon to use the full-screen capture feature. It saves its screenshots to the application start-up path.

IniEditing

For editing pre-existing .ini or .cfg files. It can be used to create configuration files as well.

InputBoxDemo

Demonstrates a textbox control that submits text through a custom event when the user provides input and presses enter. (This should be eventually moved to a WinForms Forms lib.)

IOSSliderExample

Demonstrates a rendering implementation of my abstract slider class. (This should be eventually moved to a WinForms Forms lib.)

Log File Remover

Removes log files on the drive that facilitates the currently running Windows (the boot drive). Use strict deletion specifies that only .log file types are deleted. If this option is unchecked, then .txt files with the word “log” in its filename will also be deleted.

MorseChallenge

Presents words in morse code through system beeps. The appropriate word then needs to be inputted correctly.

MorseCodeRain

A game that drops morse codes into a blue sea. The idea is to input the right character for the falling codes before they reach the sea. If a code is guess wrong or reaches the sea, a point is subtracted. If a code is guess right, a point is added.

MsgSandBox

Provides a utility for logging, viewing, and filtering window messages that are processed by a dummy Form.

ParticleGenerator

Provides a graphics example that draws blips with the specified density, radius, and color.

ReflectionPluginSystem

Demonstrates a reflection-based plugin system. This demonstration uses a simple application that applies effects to images.

ReflectionPluginSystem.BorderPlugin

Provides a plugin for the reflection-based plugin system. This plugin applies a border effect around the loaded image.

ReflectionPluginSystem.InvertColorsPlugin

Provides a plugin for the reflection-based plugin system. This plugin inverts the colors of the loaded image.

ShortcutHotkeyEditor

Edits the hotkey of the chosen shortcut (.lnk). I believe I wrote this for someone who wanted to bypass certain restrictions that are imposed when changing the hotkey through the shortcut file’s properties window.

SmoothPainting

Demonstrates smooth, freeform painting with GDI+. Also, the fidelity of the drawn path can be adjusted.

SpeechConsole

A console application that listens for certain commands. It listens for numbers 0-100, “exit”, and “close”. Say “exit” or “close” to close the application.

TicTacToe

Provides a 3x3 tic-tac-toe game. Unfortunately, the computer player loses its intelligence when the grid is set to something greater than 3x3.

VirtualPianoPlayer

Plays the virtual piano from http://virtualpiano.net/. Simply input or load a song as a sequence of keyboard keys, click “Play”, then give the web piano focus. Note: The player plays notes at a fixed interval.

WebFilesEnhanced

Opens and edits existing websites in plaintext.

WindowMatrix

A window that repeatedly takes a picture of itself, then paints the picture in its client region.

WordListProc

Processes a list of words.

  • Sort Z-A and A-Z.
  • Sort by length ascending or descending.
  • Remove duplicate words.
  • Capitalize first letter in all words.
  • Convert the entire string to upper or lower case.
  • Reverse order of list.
  • Change listing format to spaced, line separated, or comma separated.

About

A large sum of projects consisting of sample code from tutorials, or small utilities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%