Skip to content

ResourceFile Property

Description

Get/Set the path to a resource file for translated strings and dialogs.

Property Type

Read-write property.

Syntax (Visual Basic)

Public Property ResourceFile() As String

Remarks

This sample illustrates how to use a resource file to change the language used to display text in your application. This will translate all pre-set strings such as "There are no items to display."

This code should be placed in the Form_Initialize event of the main form.

Example

Translation Sample (Visual Basic)

This sample illustrates how to use a resource file to change the language used to display text in your application. This will translate all pre-set strings such as "There are no items to display."

Private Sub Form_Initialize()  
    GridControlGlobalSettings.ResourceFile = App.Path & "XTPResourceDe.dll"  
End Sub  

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.