Click here to Skip to main content
15,886,058 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In one process I open another. When the second process is started I hid the form from the first process. When the second process is done it needs to unhide the form in the first project.

What I have tried:

I have tried so many ways to approach this problem, I don't remember them all.
Posted
Updated 2-Jul-22 9:23am
Comments
[no name] 30-Jun-22 21:17pm    
Put a timer in the first process; check if the second process is still running (poll) at an appropriate interval; when done, stop timer and unhide self / first.
PaulaJoannAllen 1-Jul-22 12:24pm    
That won't work because the time the second .exe file runs depends on the operator.

1 solution

You can use delegate to handle thread end.

See:
Creating threads and passing data at start time | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900