UserControl property

MapPoint North America 2006 SDK

Returns or sets whether the user has control of MapPoint after the Visual Basic program has finished. When True, the application stays in memory until the Quit method is called or the user closes the application. Returns False if the application was created or started programmatically using the CreateObject or GetObject functions, and the application is hidden. When False, the application is released when the last programmatic reference to the application is released. Read/write Boolean.

Applies to

Objects:  Application




Part Description
object Required. An expression that returns an Application object.


  Sub LeaveAppRunningAfterQuit()

  Dim objApp As MapPoint.Application   Set objApp = CreateObject("mappoint.application")

  'Make the application visible   objApp.Visible = True
  'Give the user control of the application   objApp.UserControl = True
  End Sub