Check the properties in the resource editor - maybe they differ in some detail.
Other common reason:
* that they arent the same type or class
* the resource ID isnt the same as in the message handler
The article
Transparent Static Text In Dialogs should give you some insights and example code for your problem.