Page 1 of 1

Shadow color doesn't work

Posted: Mon Jan 30, 2006 6:58 pm
by 9639219
Setting shadow comes up fine in designer, but not at runtime.

this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0)));
this.tChart1.Panel.Shadow.Height = 5;
this.tChart1.Panel.Shadow.Width = 5;

how come?

Posted: Tue Jan 31, 2006 9:35 am
by narcis
Hi dhait,

You need to make panel shadow visible at run-time, the working code is:

Code: Select all

			this.tChart1.Panel.Shadow.Visible=true;
			this.tChart1.Panel.Shadow.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(0)), ((System.Byte)(0))); 
			this.tChart1.Panel.Shadow.Height = 5; 
			this.tChart1.Panel.Shadow.Width = 5;