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. Windows Forms
  4. While loop

While loop

Scheduled Pinned Locked Moved Windows Forms
c++performancehelptutorialquestion
4 Posts 3 Posters 3 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.
  • D Offline
    D Offline
    dodoxor
    wrote on last edited by
    #1

    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.

    K 1 Reply Last reply
    0
    • D dodoxor

      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.

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • K kubben

        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

        D Offline
        D Offline
        dodoxor
        wrote on last edited by
        #3

        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 ()

        M 1 Reply Last reply
        0
        • D dodoxor

          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 ()

          M Offline
          M Offline
          Manas Bhardwaj
          wrote on last edited by
          #4

          I wud suggest you to put it on different thread itself

          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