How would you make an instance of a form open itself in a Modal way?
I tried this.ShowDialog() but it doesn't make the form appear modal (you can still access other forms). I guess this is because it is it's own parent form in if it shows itself, but I'm not sure.
My problem:
I have an application made of 2 forms:
MainFormLoginForm
MainForm creates an instance of and opens LoginForm to ask the user to authenticate. LoginForm has a timer to regularly check and log the user in - I want this timer to open LoginForm modally. I know this could be achieved by putting the timer in MainForm but I would like to know how to make a form ShowDialog() an instance of itself.
Thanks in advance.