Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean to "Enable Application Framework" for a WPF application?

I'm creating a WPF application in VB.Net. I am trying to decide where my startup code should go. I seem to have two choices:

  1. Leave the "Enable Application Framework" box checked and choose a "Startup URI" from among the application's windows.
  2. Uncheck "Enable Application Framework" and choose to startup in my own Sub Main.

What are the implications of enabling or disabling the application framework, and why does the application framework restrict my choice of startup options?

-TC

like image 963
Todd Avatar asked May 21 '12 18:05

Todd


1 Answers

The Visual Studio magazine has an article about this. Here's an excerpt.

Visual Basic supports an "Application Framework" that makes it easier to manage the startup, shutdown, and exception management of an application. You enable or disable the application framework with a check box in the Project Properties. The application framework is part of the work Visual Basic does to make your development easier.

like image 178
Christopher Rathermel Avatar answered Sep 28 '22 11:09

Christopher Rathermel