Because AlarmViewer control consist of few internal controls, it BackColor property actually doesn’t represent the white background of it.
The AlarmViewer control has inside a pnlAlarm panel and inside it there is a listview control, which backcolor actually corresponds to what we see. To change this, You need to go into scripting:
- Change property of AlarmViewer control “ExposeToScript” to true
- After InitializeVIZNETComponents(); code paste this line:
AlarmViewer.Controls.Controls.BackColor = System.Drawing.Color.Blue;
Remember that “AlarmViewer” is actual name of Your alarmviewer control, which was exposed to script. If You have more of this controls on one graphic form, make sure You are referring to proper one.
Also, You can choose from any of the colors that You want to assign, it can be also from RGB table:
AlarmViewer.Controls.Controls.BackColor = Color.FromArgb(142,233,111);
NOTE: Make sure that Your alarm messages are still clear to read after making changes.