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.
InitializeCompo nent()
'Add any initialization after the InitializeCompo nent() call
msConnectionStr ing = msConnectionStr ing & ";Workstati on ID=" &
Environment.Mac hineName
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 WindowsDefaultL ocation 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.resumelayou t(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