Mike S

Mike S

  • NA
  • 7
  • 1.4k

C# Modal Form on Startup?

Aug 9 2019 10:30 AM
Hi, everyone!
 
This is my first post. I have a C# desktop app that I'm developing. My goal is to have this form start up in the foreground such that the end users can't click on any other windows on their screen. I think that this is opening a form "Modally" but I'm not entirely sure.
 
I've searched quite a bit and have come across a StackOverflow question that's close to what I need:
 
https://stackoverflow.com/questions/15800081/blocking-screen-access-from-win-form
 
Most of what I've found is about opening a new form modally. My app is only one form, so I want it to open modally upon startup. I realize this may be an issue when debugging because then how would I step through or stop the application in Visual Studio if everything but my form is locked--so that's another concern. I'm sure I'm missing something. Can someone shed some light on this and maybe offer an example?
 
Thanks,
 
Mike 

Answers (3)