I have about four window forms all having similar listboxes with same names and the following in the form load event (condensed but reasonably accurate)
The first time any of the form is opened the fourth line of the code takes about 925 ms. If the form is closed and any of the forms is again opened (without closing the application), the time taken is about 15 ms. Considering that the objects are local to the form I find it surprising.
Dim employeeArrayList As ArrayList
Dim employeeDAO As New EmployeeDAO
employeeArrayList = employeeDAO.GetAllData
lbEmployee.DataSource = employeeArrayList
Thanks and regards.