Category Archives: Code Snippets
Make your C# form go fullscreen
Many applications have the ability to go fullscreen. Here’s a simple snippet which will make your form go fullscreen and restore to its original location. For testing purposes, I’ve attached a very simple KeyDown event which checks for F11 keypresses (the standard fullscreen keyboard shortcut in many applications). [csharp]using System.Drawing; using System.Windows.Forms; namespace Danny_GB_Net {…
Compile the wxWidgets source – batch script
When setting up a development environment for wxWidgets, it’s usually necessary to compile your own binaries from the source. This can be a tedious task, so I threw together a simple batch script which simplifies the whole process. Note: As of 2.9.5, it is possible to download pre-built binaries for Visual C++ users. [batch]@ECHO OFF…
WP-Members: Automatically login after registration
WP-Members is a fantastic plugin for securing various areas of your WordPress site for access by registered users. While extremely versatile, not everything can be controlled through the settings alone. An often-requested feature is for the plugin to automatically login a user after they have registered. Unfortunately, this functionality is unavailable in the current version of…