Need assistance...

Posts 1–4 of 4 · Page 1 of 1
Need assistance...
Real quickly I need some help setting the location on screen of 5 forms. I want form 1, the main form, to remain center screen no matter the size of the users display.

I want form 2 and 3 to be exactly 1/2 the height of form 1 and stay on the left side of form 1 stacked and right up against it.

Likewise with forms 4 and 5 but they will be on the right side of form 1. Basically laid out like so...

Code:
[FORM 2][ FORM 1 ][FORM 4] [FORM 3][ FORM 1 ][FORM 5]
Ok so none have a border and I do not want them to be movable. any suggestions? Do I need to return the location (x,y) of the main form, form 1, first? then set the locations of the other forms around it?
If you click on the form1 and go to properties there should be an option that says where it starts, im not currently on my computer so i cant remember what it says but you just change that to "centerscreen"

and for the other forms just put this in the code i think it might work for forum_load:

Code:
if me.visible = true then
me.location = new point(x,y) 'change the x and the y to what you want
the code is something like that like i said im not on my computer lol
Quote Originally Posted by guza44_44 View Post
If you click on the form1 and go to properties there should be an option that says where it starts, im not currently on my computer so i cant remember what it says but you just change that to "centerscreen"

and for the other forms just put this in the code i think it might work for forum_load:

Code:
if me.visible = true then
me.location = new point(x,y) 'change the x and the y to what you want
the code is something like that like i said im not on my computer lol
Thank you. My greatest concern is that I'm using a 17" widescreen. Will the x,y remain the same for someone who is using, say, a 32" widescreen?

See I can't remember either but there was code that was like (x+1,y+1)/2 or some bs like that which set screen positions. I'm going back like 8 years here.

Edit:

I'm retarded. I forgot all about top and left. ie...
me.left = formmain.left - 200 , etc.
Quote Originally Posted by ROUGHS3X View Post
Thank you. My greatest concern is that I'm using a 17" widescreen. Will the x,y remain the same for someone who is using, say, a 32" widescreen?

See I can't remember either but there was code that was like (x+1,y+1)/2 or some bs like that which set screen positions. I'm going back like 8 years here.

Edit:

I'm retarded. I forgot all about top and left. ie...
me.left = formmain.left - 200 , etc.
Yea it should
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?