Примечание
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
You can retrieve the string resources of an application by accessing the resource's property on the My.Resources object.
The My.Resources object exposes each resource as a read-only property. The property name is the same as the resource name, and the property type is determined by the resource classification. For more information, see My.Resources Object.
This example sets the title of the form to the string resource named Form1Title from the application resource file.
Sub SetFormTitle()
Me.Text = My.Resources.Form1Title
End Sub
For this example to work, your application must have a string named Form1Title in the application's resource file. For more information, see How to: Add or Remove Resources.
How to: Retrieve Image Resources in Visual Basic
How to: Retrieve Icon Resources in Visual Basic
How to: Retrieve Audio Resources in Visual Basic