An easy way to do this that may work for you is to use the IniFileName property.
- Right click the AdvancedHMI project in Solution Explorer and select Add New Item
- Select Text File and give it a name like Alarms.txt
- After it s added, select the new file in Solution Explorer
- In the properties for that file change CopyToOutputDirector to CopyIfNewer
- In the file add:
0, No Alarms
1, My first Alarm
2, Next alatm
- Go back to the form with the MessageDisplayByValue
- Select your MessageDisplayByValue
- Set the IniFileName property to the name of the text file you created
You can set all of the MessageDisplayByValue to the same file. When the app starts, they will all load the same messages