Click here to Skip to main content
11,717,126 members (83,772 online)
Rate this: bad
Please Sign up or sign in to vote.
Hi everyone,
Can anyone tell me that how can I enable the cursor to stay on form while inserting bulk records in listbox. The cursor of the forms is disabled when I use to insert bulk records like above 10,000 or so. Please help me.
Posted 26-Sep-12 3:51am
Edited 26-Sep-12 3:58am
Ashraff Ali Wahab at 26-Sep-12 9:59am
You have to use a background process to insert the data into the DB and progress bar to fix this issue.

Example here :

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you are using some for loop or while loop to insert to the Item source of the listbox than you may have to use while looping


This will make your application respond even there is a loop going on the backend code, and you will able to see the cursor on the form.
This will work for windows application forms.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 659
1 F-ES Sitecore 260
2 Maciej Los 185
3 OriginalGriff 175
4 Richard MacCutchan 140
0 Sergey Alexandrovich Kryukov 1,029
1 Maciej Los 464
2 Richard MacCutchan 430
3 CHill60 415
4 OriginalGriff 415

Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100