Enabling User Security in the Sample Applications

By default, security is turned off in the C# and VB .NET Windows Forms sample applications. To enable user security, follow the steps outlined below.

  1. Add Security Tables to the Northwind Database. Follow the instructions under the Help topic Step 1: Adding Security Tables to an Application Database

  2. Double-click the app.config file, and change the SecurityEnabled setting to true:


    Note: Although this property is used in the sample applications to turn security off/on, it is NOT recommended for most applications since it opens a large security hole!

Sample Application Security at Run Time

Now, when you run the sample applications, you should see a login form (enter "MM" without a password to log in):


© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 04/26/18
Comment or report problem with topic