Can I create an MM .NET app with one form and no desktop?

To create an MM .NET Windows Forms application that has only one form and no desktop, do the following:

  1. Create a new MM .NET Windows Forms project

  2. In the Solution Explorer, delete the MainForm.cs or MainForm.vb form from the project

  3. Add a new form to your project as described in the MM .NET Help topic "Adding a New Form to Your Application"

  4. In the Solution Explorer, double-click Main.cs or Main.vb. Search for the line of code that contains a call to Application.Run() and change the MainForm reference to the name of your new form.

    For example, in C#:

    Application.Run(new Form1());

    And in VB.NET:

    Application.Run(New Form1)

  5. Add controls, business objects, etc. to your new form as needed


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