When you change the background color of a button in a DataWindow on the XP operating system, the change does not display by default in the Preview view or when you run the application, because the XP theme typically controls the background color of buttons.
To display the change in Preview mode, set the ShowBackColorOnXP property
in the [Data Window]
section
of your DW.INI file:
[Data Window] ShowBackColorOnXP=1
To display the change at runtime, add the following statement to code that runs before the DataWindow is displayed:
dw_1.Modify("DataWindow.ShowBackColorOnXP = yes")
This change is also available in DataWindow .NET 2.0 EBF Build 5063 and 1.5.1 EBF Build 9671 and later builds.