i have made a video player program and i've set it up so when a user double clicks on a video file the program opens and the video plays. however if the program is running and the user double clicks on a video file it opens a new window and plays the video at the same time. can anyone tell me how to set it so if the program is running and the user tries to open it again it brings the currently running version of the program to the front and passes a file name (if the user has openned a video file for example)?