Export (0) Print
Expand All

Support.LoadResData Method (Object, Object)

Loads data of several possible types from a resource (.res) file.

Namespace: Microsoft.VisualBasic.Compatibility.VB6
Assembly: Microsoft.VisualBasic.Compatibility (in microsoft.visualbasic.compatibility.dll)

public static Object LoadResData (
	Object ID,
	Object restype
)
public static Object LoadResData (
	Object ID, 
	Object restype
)
public static function LoadResData (
	ID : Object, 
	restype : Object
) : Object
Not applicable.

Parameters

ID

An Object that specifies the data in the resource file.

restype

An Object that specifies the resource type.

Return Value

An Object that contains the resource.

In Visual Basic 6.0, international versions of an application were created by putting all localizable information, such as strings, into a separate resource file (.res) for each language. At run time, locale-specific resources were loaded from the resource file by calling the LoadResString, LoadResPicture, and LoadResData functions.

In Visual Basic Code Name "Orcas", international versions of an application are created by changing the Language property of a form at design time. A separate resource file (.resx) is automatically created for each locale selected. You no longer have to explicitly load resources from code; resources are automatically loaded based on the user's locale. For more information, see Globalizing Windows Forms.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft