Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. control is not coming out from Application::DoEvents method

control is not coming out from Application::DoEvents method

Scheduled Pinned Locked Moved Managed C++/CLI
graphicsdebugginghelp
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    Uma Mahes
    wrote on last edited by
    #1

    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

    U 1 Reply Last reply
    0
    • U Uma Mahes

      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

      U Offline
      U Offline
      Uma Mahes
      wrote on last edited by
      #2

      :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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups