Hi jai,
try this
List<TestClass> ListDevLog = new List<TestClass>();
TestClass[] objDevLogArry;
if (ListDevLog.Count > 500)
{
double temp = Math.Floor(Convert.ToDouble(ListDevLog.Count / 500));
for (int i = 0; i < temp; i++)
{
ListDevLog.RemoveRange(0, 500);
}
}
you can convert c# code to vb code in
www.developerfusion.comsite