I have a problem with an application. The application have a Form contains a data grid view for displaying items data. There is a column within the data grid view of custom control type when pressing F3 on such column it shows another Form for searching the items. The other Form containing another data grid view with the property VirtualMode set to true and a NewRowNeeded event and a row count of 50. each time I scroll down 50 rows a SQL Query is executed and another 50 rows are added to the data grid view and so on. When I begin to fill in the main Form data grid view with items by searching for an item for each row using the item seach Form after a while on item adding I got the "cannot create a window handle" exception and when looking for the GDI objects they were 436 and the Handles were 2175 and I do not know how to solve such situation?