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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to make a process wait for other process to complete

How to make a process wait for other process to complete

Scheduled Pinned Locked Moved Visual Basic
tutorialdebugginghelp
3 Posts 3 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.
  • R Offline
    R Offline
    R Sankar
    wrote on last edited by
    #1

    See Im having one process of converting a excel document to xps document meanwhile i m calling print method to print this document But wats happening means sometimes template of the excel is copied to the xps and but lying inner data in the excel hasnt copied but the process starts to print the document If i put breakpoint at that print method calling and if i run step by step the XPS document got printed with the data Since its getting enough time to copy all the content during breakpoint its doing it with data How to overcome this problem

    J 1 Reply Last reply
    0
    • R R Sankar

      See Im having one process of converting a excel document to xps document meanwhile i m calling print method to print this document But wats happening means sometimes template of the excel is copied to the xps and but lying inner data in the excel hasnt copied but the process starts to print the document If i put breakpoint at that print method calling and if i run step by step the XPS document got printed with the data Since its getting enough time to copy all the content during breakpoint its doing it with data How to overcome this problem

      J Offline
      J Offline
      Johan Hakkesteegt
      wrote on last edited by
      #2

      Hi, One possible solution would be to add a Timer control to your app, and a boolean. Set the boolean to true when the first process is really done. With the Timer Tick event you can check to see whether the boolean is true, and only then start the second process. Good luck, Johan

      My advice is free, and you may get what you paid for.

      V 1 Reply Last reply
      0
      • J Johan Hakkesteegt

        Hi, One possible solution would be to add a Timer control to your app, and a boolean. Set the boolean to true when the first process is really done. With the Timer Tick event you can check to see whether the boolean is true, and only then start the second process. Good luck, Johan

        My advice is free, and you may get what you paid for.

        V Offline
        V Offline
        VB Prog
        wrote on last edited by
        #3

        Use BackgroundWorker or Delegates.

        VB Prog

        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