Hi,
If you use ShowDialog to show the form, then it will be displayed in front
of the parent form. As an alternativ to create the logon box from the
main form, you could display it in the Main method before launching the
main form. That way the main form will never even be displayed if the
logon failed.
On Mon, 04 Dec 2006 07:08:31 +0100, eddy k <ed*********@gmail.comwrote:
I am creating a windows application. Before entering the main form I
want to have a logon box. I create this box from the constructor of the
main form, but when the logon box opens it is not in focus. How can I
force a form to be in focus?
--
Happy Coding!
Morten Wennevik [C# MVP]