Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WPF Application not displaying main window
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01333407
Message ID:
01334582
Vues:
10
Here is the code that was created when I Created the project.
Public Shared Sub Main(ByVal args As String())

		'' Instantiate the Application object
		App = New AppWPF()

		'' Set the ShowInTaskbar default
		mmAppWPF.WindowManager.ShowInTaskbarDefault = ShowWindowsInTaskbarDefault

		Dim Result As Nullable(Of Boolean) = True

		'''' Uncomment this code to display the login window
		''Dim LoginWindow As UserLoginWindow = New UserLoginWindow()
		''Result = LoginWindow.ShowDialog()


		If Result = True Then

			Dim App As Application = New Application()
			Dim appWrapper As mmApplicationWrapper = New mmApplicationWrapper(App, mainWindow, IsSingleInstance)
			'' Instantiate the main application window
			mainWindow = New MainWindow()

			'' Log any unhandled exceptions
			AddHandler appWrapper.Application.DispatcherUnhandledException, AddressOf UnhandledExceptionHandler

			'' If IsSingleInstance is true, activates the current instance of the 
			'' application rather than running multiple instances
			AddHandler appWrapper.StartupNextInstance, AddressOf StartupNextInstanceHandler

			appWrapper.Run(args)

		End If

	End Sub
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform