C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 12-23-2006, 12:11 PM   #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?
Crazy Glue is offline   Reply With Quote
Old 12-23-2006, 12:20 PM   #2
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
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
CornedBee is offline   Reply With Quote
Old 12-23-2006, 12:45 PM   #3
Registered User
 
Join Date: Oct 2005
Posts: 27
Yay! it works! Thankkssss X-D
Crazy Glue is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 07:38 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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