i am loading a form using
the problem is when i first load the program and click a button to load this form it loads exactly where i need it "lets call this === spot x ==="
now if i close that secound form and drag the main form to new position on the screen then click the button to load the second form the second form does not load in the middle of the main form instead it still loads at " spot x" i.e the main forms original center point.
does any 1 know how to resolve this issue. thanks in advanced
vb Code:
Dim x As Integer = (Index.ClientSize.Width - frmPleaseWait.Width) - 430 Dim y As Integer = (Index.ClientSize.Height - frmPleaseWait.Height) - 90 Dim Points As Point = New Point(x, y) Myforms.Location = Points
the problem is when i first load the program and click a button to load this form it loads exactly where i need it "lets call this === spot x ==="
now if i close that secound form and drag the main form to new position on the screen then click the button to load the second form the second form does not load in the middle of the main form instead it still loads at " spot x" i.e the main forms original center point.
does any 1 know how to resolve this issue. thanks in advanced