i am using a datareport.. and i have this function that prints the report. and i also have a listbox(checked enabled) and i have to print all checked items in the listbox. so i have this procedure that loops through the listbox and check whether the item is checked or not.. if checked it will print the item if not does nothing.. the problem is that my loop is correct but it seems that it only prints the first item and neglects the other items to be printed.. and i noticed that everytime i put a break in my program it prints all items.. so i think if i can make the program pause like for 5 seconds it will print properly as i want to.

Is there any code that can pause my program before continueing the next line of code? i have used timer and it didn't do the work.