int yAxis = 0; for (int i = stkNotificaiton.Count; i > 0; i--) { Panel pnl = (Panel)stkNotificaiton.Pop(); pnl.AutoSize = true; pnl.Location = new Point(0, yAxis); pnlNotification.Controls.Add(pnl); // <-------------------Error is showing. yAxis = 48 * noofNewNotifications; }
stkNotification
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)