Skip to main content
gamedev.net
🔒 Locked

[.net] Multiple Forms positions problems

Started by Cacks Dec 27, 2006 at 1:22 PM 1 replies 400+ views
Original Post
Cacks
Cacks
Hi guys, I'm using MDI so that I can have multiple subforms in my main form. I have 4 subforms & want to organise them in such a fashion that they each take up a quarter of the space in the main form. I can get the subforms to become the appropriate but I cannot position the subforms in the correct places. I'm trying to do this to position the 1st form in the top left corner: hRenderingForms[0]->Location.X = 0; hRenderingForms[0]->Location.Y = 0; Any1 have any ideas on how to do position these? Thanks.
Reject the basic asumption of civialisation especially the importance of material possessions
joelmartinez
joelmartinez
So what happens when you set the x/y of a given subform?

Edit: just realized that the .Location property is a struct being returned from a property getter. try doing something like this instead:

hRenderingForms[0]->Location = new Point(0,0);
Joel Martinez
http://codecube.net
[twitter]joelmartinez[/twitter]
Cacks
Cacks
Thats great man, thanks. Got it woking now!
Reject the basic asumption of civialisation especially the importance of material possessions

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.