Click here to Skip to main content
15,945,603 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to make button run a lot of application .exe with delay time please help

What I have tried:

Private Sub RButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RButton1.Click
       Process.Start(My.Computer.FileSystem.CurrentDirectory & "\dbsrv\admin.txt")
       Process.Start(My.Computer.FileSystem.CurrentDirectory & "\dbsrv\Omar.txt")
   End Sub
Updated 18-Nov-16 1:48am
[no name] 18-Nov-16 6:58am    
"run a lot of application .exe with delay time", what does that even mean?
Ahmed Adel 18-Nov-16 7:09am    
let me explain i have online game 34 file .exe and i want to run them with delay time
Karthik_Mahalingam 18-Nov-16 10:53am    
Always use  Reply  button, to post Comments/query to the user, so that the user gets notified and responds to your text.

1 solution

Since your button click would then take a long time, I suggest you to use a worker thread for the purpose. Insert calls to the Thread.Sleep[^] method in order to delay the calls.
Share this answer
Ahmed Adel 18-Nov-16 8:04am    
can you make that for example like two application text and calc
Ahmed Adel 18-Nov-16 8:49am    
i got it thanks a lot bro :) .. thanks you again
CPallini 18-Nov-16 8:52am    
You are welcome.

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