Version

ResolveFormsDirectory Method

This method will check to see if the formsDirectory has been specified through a config file. If it has, it will return the value from the config file. Otherwise, the value passed in as the originalPath parameter will be returned.
Syntax
'Declaration
 
Public Shared Function ResolveFormsDirectory( _
   ByVal originalPath As String, _
   ByVal control As Control _
) As String
public static string ResolveFormsDirectory( 
   string originalPath,
   Control control
)

Parameters

originalPath
The value to be used, if no value has been specified through the config file.
control
A reference to a valid control - used to get application specific settings.

Return Value

A path to be used as the formsDirectory
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also