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?
Username87 0 Newbie Poster
tinstaafl 1,176 Posting Maven
Suzie999 245 Coding Hobbyist
cgeier 187 Junior Poster
Amr_Mohammad_R 0 Newbie Poster
cgeier 187 Junior Poster
cgeier 187 Junior Poster
Amr_Mohammad_R 0 Newbie Poster
Suzie999 245 Coding Hobbyist
cgeier 187 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.