Type | Description | |||
Property as DefHostPropertyEnum | A DefHostPropertyEnum property that specify the property to be accessed. | |||
Variant | A Variant expression that defines the default value for giving property. |
The Refresh method refreshes the control including the inner host. The Refresh method may be required for changing some properties of the HostDef property.
The following VB sample changes the colors to highlight the errors:
With G2Host1 .DataSource("Items") = "C:\Program Files\Exontrol\ExG2Host\Sample\sample.accdb" .DataMember("Items") = "Employees" .DataField(exItemsDataSource) = "Items" .DataField(exItemsID) = "EmployeeID" .HostDef(exErrorBackColor) = 0 .HostDef(exErrorForeColor) = 16777215 End With
The following picture shows how errors shows up: