Hi Erel,
I tried using the methods suggested. It works.. but noticed there was 'flashing' of the windows from center to the position moved. This is obvious when the Form is displayed the first time. Subsequently it will not.
In your example..
Sub Button1_Click
form2.Show
form2.Left = form1.Left
form2.Top = form1.Top
End Sub
Form2 was shown before the 'moving' was done. If I changed it to:
Sub Button1_Click
form2.Left = form1.Left
form2.Top = form1.Top
form2.Show
End Sub
the Form2 will not moved to the new coordinate the first time Form2 was shown, however it will recognise the coordinate on subsequent display of Form2.
Is there a way to prevent the 'windows flashing' from being seen?
|