New questiona about visual C# lol

This is a discussion on New questiona about visual C# lol within the C# Programming forums, part of the General Programming Boards category; When I push a button in my program, it starts a loop that first destroys and then creates some labels. ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    27

    New questiona about visual C# lol

    When I push a button in my program, it starts a loop that first destroys and then creates some labels. What I want to get is to be able to see whats happening each iteration of the loop. Whats happening right now is that the program just waits till the end of the loop to display all of the labels. It does not seem to create them in between. Does anyone know why this is happening?

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    Because the application cannot draw while in the loop. A better way would be to install a timer and do one "iteration" on each timer tick.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    27
    Yay! it works! Thankkssss X-D

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Compiling Program
    By wco5002 in forum C++ Programming
    Replies: 13
    Last Post: 11-06-2007, 11:56 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Organisiing code
    By pdstatha in forum C++ Programming
    Replies: 4
    Last Post: 07-01-2002, 11:39 AM
  4. Using 'if' with char arrays or string objects
    By c++_n00b in forum C++ Programming
    Replies: 36
    Last Post: 06-06-2002, 09:04 PM
  5. odd errors from msvc std library files
    By blight2c in forum C++ Programming
    Replies: 6
    Last Post: 04-30-2002, 12:06 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21