I have a project that has forms that inherit properties from a base form (called frmBase). I ran into a problem that really baffled me:
I want the program focused on the user screen, so I added
this.CenterToScreen ();
in frmBase_Load (). This works fine when I run the application, BUT, when I try to create any of the forms that inherit from frmBase, they all move to the lower right corner of the designer screen, and I have to use the scroll bars to see them.
If i move
this.CenterToScreen ();
to frmBase () code, by default the application is placed in the upper left part of the screen when it starts, but the designer displays the form correctly for me. Any idea what is going on? I searched, but it seemed I could not find a similar question, although I know that I can not be the first with whom this happened. ,,
source share