Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Location of forms
Message
From
31/10/2002 14:12:04
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00717303
Message ID:
00717475
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform