Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Form location
Message
De
15/07/2010 15:10:57
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Change Form location
Divers
Thread ID:
01472613
Message ID:
01472613
Vues:
117
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform