The Sample Applications
MM .NET has sample applications written in both C# and VB .NET you can study for tutorial purposes. By default, these applications access SQL Server's Northwind database.
The sample applications are located in the MM .NET Framework 2026\Samples folder:

Setting Up the Sample Applications
As mentioned above, you must have access to the SQL Server Northwind database to run the sample applications. By default, the connection string for connecting to the Northwind database is set to:server=(local);uid=sa;pwd=;database=Northwind;
If this setting works properly for your installation of SQL Server, then go directly to the next section to run the sample application.
If you need to change the connection string:
- In the Visual Studio Start Page, click the Open Project button.
- In the Open Project dialog, navigate to the MM Northwind Sample Application_CSharp or MM Northwind Sample Application_Visual Basic folder shown above, select the MM Northwind Sample Application_CSharp.sln or MM Northwind Sample Application_Visual Basic.sln file and click the Open button.
- In Visual Studio's Solution Explorer, double-click the app.config file to open it for editing.
- Within the <databases> element towards the bottom of the file, you will see the following element:
<add key="CustA\Northwind\Connection" value="server=(local);uid=sa;pwd=;database=Northwind;" />
Change the connection string found in the value attribute as needed for your installation of SQL Server.
- Click the Save button (or type Ctrl+S) to save changes.
Running the Sample Applications
To run the sample applications:
- In the Visual Studio Start Page, click the Open Project button (if the project is already open, go to step 3).
- In the Open Project dialog, navigate to the MM Northwind Sample Application_CSharp or MM Northwind Sample Application_Visual Basic folder shown above, select the MM Northwind Sample Application_CSharp.sln or MM Northwind Sample Application_Visual Basic.sln file and click the Open button.
- Select Debug | Start from the Visual Studio main menu (or simply press F5). This rebuilds and runs the sample application.
- After the application loads, select Customer | Orders from the menu. This launches the Customer Orders form:

- In the Customer ID text box, enter a valid Northwind database customer ID such as "OCEAN", "QUICK", or "QUEEN", and then press TAB.
Go to the Properties tab to see details of the currently selected order. Use the navigation toolbar at the top of the main application window to navigate to the next order. You can also choose other menu options to check out additional functionality of the sample application.
Adding Security to the Sample Applications
By following just a few simple steps outlined in the Help topic Enabling User Security in the Sample Applications, you can add a login form and a User and Roles form to the Windows Forms sample applications.Dynamically Switching from SQL Server to Visual FoxPro Data
The Windows Forms sample applications provide an easy way to dynamically switch the back end from SQL Server to Visual FoxPro data. When the application first starts up, it defaults to SQL Server data. To switch to Visual FoxPro data do the following:
Note: You must download the Visual FoxPro OLEDB Provider and install it on your machine in order to access Visual FoxPro data from the sample application.
Also, by default, the Visual FoxPro Northwind database is stored in the C:\Program Files\MM .NET Framework 2026\Samples\VFPData folder. If you have installed MM .NET in a different folder, open the sample application's app.config file and change the path in the CustB connection string to point to the correct directory.
- Run the sample application and make sure all application forms are closed.
- From the main menu, select File | Options... which launches the Options dialog.
- In the Database Sets combo box, select Customer B (Visual FoxPro):

- Click OK to close the dialog.
Now when you launch the application forms and retrieve/update data, you will be accessing the Visual FoxPro Northwind database that is distributed with MM .NET.
The iPhone WPF Samples
Check out our iPhone C# and VB .NET sample applications. They demonstrate how you can use MM .NET in conjunction with Windows Presentation Foundation technology to do interesting things, such as mimic the iPhone user interface on your PC.
In C#:
C:\Program Files\MM .NET Framework 2026\Samples\iPhone CSharpAnd in VB .NET:
C:\Program Files\MM .NET Framework 2026\Samples\iPhone Visual Basic
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 02/10/26
Comment or report problem with topic
