I have a blank form and my Sub New is as follows:
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
msConnectionString = msConnectionString & ";Workstation ID=" &
Environment.MachineName
BuildForm()
End Sub
In the Build Form sub, I read from the database and get information used to
add controls, change the form size, etc. In the Build Form sub, one of the
options is to change the start position from WindowsDefaultLocation to
either CenterScreen or Manual (and provide the start point).
I have suspened the layout of the form before all of the code in the Build
Form sub and then Resumed it (me.resumelayout(True)).
When the code changes the start position to CenterScreen, the form (at the
end) does not recenter on the screen based upon the new form size. Am I
missing something obvious?
Thank you