Support.LoadResPicture Method

Definition

Loads a bitmap, icon, or cursor from a resource (.res) file.

Overloads

LoadResPicture(Object, LoadResConstants)
Obsolete.

Loads a bitmap, icon, or cursor from a resource (.res) file.

LoadResPicture(Object, LoadResConstants, CultureInfo)
Obsolete.

Loads a bitmap, icon, or cursor from a resource (.res) file, specifying a locale.

LoadResPicture(Object, LoadResConstants)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Loads a bitmap, icon, or cursor from a resource (.res) file.

public:
 static System::Object ^ LoadResPicture(System::Object ^ ID, Microsoft::VisualBasic::Compatibility::VB6::LoadResConstants restype);
public static object LoadResPicture (object ID, Microsoft.VisualBasic.Compatibility.VB6.LoadResConstants restype);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static object LoadResPicture (object ID, Microsoft.VisualBasic.Compatibility.VB6.LoadResConstants restype);
static member LoadResPicture : obj * Microsoft.VisualBasic.Compatibility.VB6.LoadResConstants -> obj
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member LoadResPicture : obj * Microsoft.VisualBasic.Compatibility.VB6.LoadResConstants -> obj
Public Function LoadResPicture (ID As Object, restype As LoadResConstants) As Object

Parameters

ID
Object

An Object that specifies the data in the resource file.

restype
LoadResConstants

A LoadResConstants enumeration that specifies the resource type.

Returns

An Object that contains the resource.

Attributes

Remarks

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, 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 applications.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to

LoadResPicture(Object, LoadResConstants, CultureInfo)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Loads a bitmap, icon, or cursor from a resource (.res) file, specifying a locale.

public:
 static System::Object ^ LoadResPicture(System::Object ^ ID, Microsoft::VisualBasic::Compatibility::VB6::LoadResConstants restype, System::Globalization::CultureInfo ^ Culture);
public static object LoadResPicture (object ID, Microsoft.VisualBasic.Compatibility.VB6.LoadResConstants restype, System.Globalization.CultureInfo Culture);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static object LoadResPicture (object ID, Microsoft.VisualBasic.Compatibility.VB6.LoadResConstants restype, System.Globalization.CultureInfo Culture);
static member LoadResPicture : obj * Microsoft.VisualBasic.Compatibility.VB6.LoadResConstants * System.Globalization.CultureInfo -> obj
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member LoadResPicture : obj * Microsoft.VisualBasic.Compatibility.VB6.LoadResConstants * System.Globalization.CultureInfo -> obj
Public Function LoadResPicture (ID As Object, restype As LoadResConstants, Culture As CultureInfo) As Object

Parameters

ID
Object

An Object that specifies the data in the resource file.

restype
LoadResConstants

A LoadResConstants enumeration that specifies the resource type.

Culture
CultureInfo

A CultureInfo object that specifies the locale.

Returns

An Object that contains the resource.

Attributes

Remarks

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, 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 applications.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to