Okay so I am creating a program (well more an application as it's becoming alot of coding). But anyway, I have created multiple forms for it but I can't figure how to keep the form on top. I have found the code
this.TopMost = true;
But that only keeps the the form on top of the other forms, but what I need to figure out is how to prevent the user from selecting the other forms. You know like when you save a document nad the dialog pops up it won't let you click on the doument it just makes that beeping sound. I hope I am making sense. (oh also if I do this.Close() for the form with that make TopMost false)
This is something that comes up often enough around here so here's a link to a previous thread where a modal dialogue was discussed (please don't post in the old form though, if you have questions about what is discussed there please post them here).
That would suit the needs as you've stated them.
Hope it helps :) Please remember to mark this thread solved once your issue is resolved.
Not even :/
Did you check the link Lusipher posted? It showed you how to use a modal form:
shiftAlter_edit_Form6 form6 = new shiftAlter_edit_Form6(storedFileArray, loc);
Code execution will pause on the current form until form6 is closed. You wont be able to move focus to any other forms. You can also make use of the DialogResult property in the modal form to tell the parent form what the outcome was such as DialogResult.OK or DialogResult.Cancel.
I mean seriously... Especially when it was ME who was right first :'(
LoL Sorry, had to say it Ryshad. And I agree completely with what you said but um... now you and I are both guilty of refreshing the thread to point out that the thread didn't need to be refreshed :twisted: