General information
Title:
Change Form location
Hi,
The questions is too simple but can't manager.
I have 2 forms
in form1 button.itemclick event I wrote the code
Dim loForm as myForm = new MyForm(me.Location.X+100, me.Location.Y+100)
loForm.showDialog()
in the form2
Public Sub new(Byval tnX as Integer, ByVal tnY as Integer)
Me.Location = New System.Drawing.Point(tnX, tnY)
As result..
Form2 still auto centered form. Why? :)
Thanks
Denis
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only