Results 1 to 4 of 4
  1. #1
    ROUGHS3X's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    MPGH's resident persona non grata.
    Posts
    3,366
    Reputation
    38
    Thanks
    481
    My Mood
    Amused

    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?

  2. #2
    guza44_44's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    433
    Reputation
    16
    Thanks
    310
    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

  3. The Following User Says Thank You to guza44_44 For This Useful Post:

    ROUGHS3X (10-29-2009)

  4. #3
    ROUGHS3X's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    MPGH's resident persona non grata.
    Posts
    3,366
    Reputation
    38
    Thanks
    481
    My Mood
    Amused
    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.
    Last edited by ROUGHS3X; 10-29-2009 at 08:57 PM.

  5. #4
    ĎŗҚ ĉҰρҢềŔ's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    CA CALI, OC
    Posts
    278
    Reputation
    16
    Thanks
    134
    My Mood
    Aggressive
    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

  6. The Following User Says Thank You to ĎŗҚ ĉҰρҢềŔ For This Useful Post:

    ROUGHS3X (10-30-2009)

Similar Threads

  1. Microsoft Visual Studio (Need assistance lol)
    By Noobkake in forum Combat Arms Help
    Replies: 5
    Last Post: 07-06-2010, 01:12 PM
  2. Replies: 13
    Last Post: 07-13-2009, 12:32 AM
  3. Needing Assistance With The Pub Hack
    By asiansh0t in forum Combat Arms Hacks & Cheats
    Replies: 0
    Last Post: 01-01-2009, 12:12 PM
  4. Replies: 2
    Last Post: 03-01-2007, 07:10 PM

Tags for this Thread