control is not coming out from Application::DoEvents method
-
I am drawing continously in the button start click and stopping in the Stop button method. Inorder to handle the message processing inserted Application::DoEvents Method in but_StartClick. After i included this statement drawing is not continuous when i debug, control is not coming out from Application::Doevents methos. Any body knows about this problem. Please give me some solutions for this problem. void but_StartClick(Object* sender, EventArgs* e) { bContinuous = true; while(bContinuous) { //drawing function Application::DoEvents(); } } Thanks & regards, Uma
-
I am drawing continously in the button start click and stopping in the Stop button method. Inorder to handle the message processing inserted Application::DoEvents Method in but_StartClick. After i included this statement drawing is not continuous when i debug, control is not coming out from Application::Doevents methos. Any body knows about this problem. Please give me some solutions for this problem. void but_StartClick(Object* sender, EventArgs* e) { bContinuous = true; while(bContinuous) { //drawing function Application::DoEvents(); } } Thanks & regards, Uma
:omg: Its working now check knowledge base PRJ: Toolbar Buttons Don't Work When Using DoEvents Statement article in MSDN. PSS ID Number: Q147409 When the DoEvents statement runs in a Visual Basic for Applications macro, toolbar button commands will not run. The toolbar buttons appear fully functional, but clicking a toolbar button will not run the command for that button. Menu commands, other macros, and other applications can be run normally. Actually i placed drawing code in ToolBar button. Now i moved to Button it is working fine.