While loop
-
Hi to everyone, i've a window form project in visual c++. I want to put a while loop in a button click method(to see in a picture box some images taken from a memory buffer and every loop i refresh the picturebox) but this is the problem when i execute the project: when i click on the button and enter the loop i can't do anything with the other controls of the form. Any suggestions how to resolve my problem? Thanks for answers in advance, regards.
-
Hi to everyone, i've a window form project in visual c++. I want to put a while loop in a button click method(to see in a picture box some images taken from a memory buffer and every loop i refresh the picturebox) but this is the problem when i execute the project: when i click on the button and enter the loop i can't do anything with the other controls of the form. Any suggestions how to resolve my problem? Thanks for answers in advance, regards.
-
I don't know what the command is in c++ but in .net it is Application.DoEvents(); So there must be something similar, but I am not sure what it is. Ben
Thank yuo very much. I try and works. this is msdn for c++ Application.DoEvents Method Processes all Windows messages currently in the message queue. Namespace: System.Windows.Forms Assembly: System.Windows.Forms (in system.windows.forms.dll) SyntaxSyntax C++ public: static void DoEvents ()
-
Thank yuo very much. I try and works. this is msdn for c++ Application.DoEvents Method Processes all Windows messages currently in the message queue. Namespace: System.Windows.Forms Assembly: System.Windows.Forms (in system.windows.forms.dll) SyntaxSyntax C++ public: static void DoEvents ()
I wud suggest you to put it on different thread itself