Results 1 to 2 of 2

Thread: sleep command preventing form2 from displaying

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2007
    Posts
    115

    sleep command preventing form2 from displaying

    i have form1 which kicks off a form2

    in form2 i have a loop which updates a listview

    i want the loop to run continuously until i kill the program (i will eventually add multi-threading but have not yet)

    the loop displays data in a listview, then sleeps then displays next page of data in listview and then restarts from first page

    I added this command in a do loop (with no condition - i want it to run continuously)

    Code:
    System.Threading.Thread.Sleep(1000)
    The problem is that when I add this code (all in form 2), form 2 doesnt display at all

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jun 2007
    Posts
    115

    Re: sleep command preventing form2 from displaying

    update: i think it might be the continuous do loop that is preventing it from displaying... not the sleep command

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width