Results 1 to 8 of 8

Thread: form in center

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Question

    Hi


    When I center my form, It was big, same I changing the property WIDTH and HEIGHT, what happened ?

    thank you in advance


  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    You probably have the WINDOWSTATE of the property set to MAXIMIZED.
    Chemically Formulated As:
    Dr. Nitro

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    check the form WindowState property..perhaps you changed it by accident...should be vbNormal
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    windowstate

    Hi

    It is 0 - Normal

  5. #5
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Is it a big app...perhaps you could display the code
    so one can see if anything in the code is triggering the change.
    If you remove the center form does it stay small?
    How are you centering tht form?
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  6. #6
    Guest

    Thumbs up What version of vb

    From version 5 there is a form property for centering the form, (caren't remember what it's called but towards the bottom of the properties list). Maybe cut out the centering code from your app and use this property method.

  7. #7

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Unhappy

    I am using VB 6 , when I remove the center form It stay big too

  8. #8
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    ..if that is the case you have to do it in design mode
    or you can code it
    Code:
    Private Sub Form_Activate()
        Me.Width = 6000
        Me.Height = 4000
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width