Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Location of forms
Message
De
31/10/2002 14:12:04
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00717303
Message ID:
00717475
Vues:
18
Cathi,

Thanks for the suggestion. I ended up using the docking features of windows forms and it worked.

Thanks
Jim

>Hi Jim,
>
>You need to set the StartPosition for the child form to Manual and then set the Location property to the actual position you want to set the form to like the following:
>
>
>OrdersForm.MdiParent = Me
>OrdersForm.StartPosition = FormStartPosition.Manual
>OrdersForm.Location = New System.Drawing.Point(30, 30)
>OrdersForm.Show()
>
>
>In your case you can also query the coordinates of the Treeview control to get the exact location to set for the child form. In my example above, I just hardcoded the location. Yours could be more dynamic.
>
>>All,
>>
>> I have a MDI application. I want to set the location for the child forms in the constructor of the child form. I want the child form to position itsself next to a treeview control on my parent form. What is the best way to do this?
Thanks

Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform