Results 1 to 8 of 8

Thread: Maximizing and restoring the form

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Talking

    Yo, i'm trying to make my app make a combo box change it's size as you maximize or restore or resize your app. For example, The combo box should be as wide as the form when the form is maximized, it should be as wide as the form when restored, and as you resize the form to your own width, the combo box should be the same in width!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


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

    <?>

    Private Sub Form_Load()
    Combo1.Width = Form1.Width - 80
    Combo1.Left = 0
    End Sub

    Private Sub Form_Resize()
    Combo1.Width = Form1.Width - 80
    Combo1.Left = 0
    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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Angry

    It's not working try it with your compiler
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


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

    <?>

    I do before I post.
    What seems to be the problem?
    Is your combo box called Combo1 and did you copy and paste the code..I will test it again just to be certain.
    Back in a min. or two
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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

    <?>

    Works fine.
    "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

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    not for me. I resize the window and I even add a message box that pops up when u resize. When I resize the msgbox pops up, but it doesn't resize the combo
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


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

    <?>

    Can you post your code
    Are you using vb6
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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

    <?>

    I sent you my version in your email.ZIP file.
    Maybe what I am doing is not what you are expecting.
    Let me know..
    "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