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 {…

Read More

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…

Read More