I'm using Visual Studio 2012. My form, when it opens doesn't center to the screen. I have the form's StartPosition
set to CenterScreen
, but it always starts in the top left corner of my left monitor (I have 2 monitors).
Any ideas? Thanks
I'm using Visual Studio 2012. My form, when it opens doesn't center to the screen. I have the form's StartPosition
set to CenterScreen
, but it always starts in the top left corner of my left monitor (I have 2 monitors).
Any ideas? Thanks
try this way!
Two virtual members are called in constructor of the application.
namely
do not call virtual member in constructor it may lead to abnormal behaviour
fixed code