© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
23 replies
Foidmaxxer67

How do I make my Process.Start automatically end after it's done playing?

I'm making my Process.Start play a video within the same file folder however I want it to automatically close on its own after it's done, and not by the user manually clicking exit
I tried doing WaitForExit and Close but it displays: System.NullReferenceException: 'Object reference not set to an instance of an object.'
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How can I make an application automatically start when my laptop starts?
C#CC# / help
2y ago
✅ Make process believe it's a startup app?
C#CC# / help
3y ago
process start
C#CC# / help
2y ago
How do i start?
C#CC# / help
15mo ago