Results 1 to 6 of 6

Thread: Resizing

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Unhappy

    I made a program with the app wizard and there's something wrong! In the form resize subs I added a code that will resize my browser with the form. And it's not working! It only works once when the form loads!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    Where did you put the code, in the form load event, or in the form resize event?
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Cool

    Form Resize what do you think! I'm not dumb!!!
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  4. #4
    Lively Member
    Join Date
    Sep 2000
    Location
    NC, USA
    Posts
    102

    Talking

    hahaha, well somebody had to ask. j/k, copy and paste your code into the resize event of a form on a clean standard exe project and see if it works. or post your code so we can see it. It should work fine.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    It works now. Because before I was using the following code (UNDER FORM RESIZE!!!)

    Code:
    'This code uses the width and hight of the form when the
    'form was loaded, so when you resize it uses the old w/h.
    BR.Width = frmMain.Width - 120
    BR.Height = frmMain.Height - 950
    
    'New code which uses the current w/h!
    BR.Width = Me.Width - 120
    BR.Height = Me.Height - 950
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  6. #6
    Lively Member
    Join Date
    Sep 2000
    Location
    NC, USA
    Posts
    102

    Thumbs up Roger That (nt)

    Roger That (nt)

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