Results 1 to 11 of 11

Thread: Unwanted restriction on form size in IDE during design time

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    30

    Unwanted restriction on form size in IDE during design time

    Hi. I apologised if this seems trivial. I am using VB6 and during design time, I can only view my form to a certain size. When I try to drag it further out so that I can see more empty spaces of the form, I can't. The form just allow me to drag until certain position to the left even though there is a lot space on the left. I read about a thread from this forum that setting format > lock controls (unlock it) but then I tried unlocking it but it still persist. If anyone knows any other setting I can adjust to unlock this restriction.

  2. #2
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Unwanted restriction on form size in IDE during design time

    Probably that certain point is equivalent to the right border of your screen.

    Do you intend to have a form that is bigger than your screen ?

    If you briefly change the pc to a higher resolution, and re-open your project, you will find that you can drag it wider than before
    Rob C

  3. #3
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Unwanted restriction on form size in IDE during design time

    Can you post the code for the your Form_Resize

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    30

    Re: Unwanted restriction on form size in IDE during design time

    Hi. Thanks for your reply. There is no Form_resize. This is not about coding.
    It's about setting. When I open one of program, the form is big but the screen of my PC should have no problem viewing all. Logically, if there is
    some space on screen and the form is partly seen, one would drag the form
    so that it become bigger to view all. When I drag it, the form boundary on the right refuse to go further to the right. All this are not in runtime or the program is not running at all. It's in design time.

    As for whether it is due to the resolution or screen problem, I don't think so.
    I have open bigger screen than this one. when I create a new program, I can drag and create a form much bigger than this one but this program some how
    has this restriction. I don't know what has been set differently.
    Last edited by kwng; May 2nd, 2007 at 12:02 AM.

  5. #5
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Unwanted restriction on form size in IDE during design time

    can you trim a copy down and attach it, so we can look at it first hand ?
    Rob C

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    30

    Re: Unwanted restriction on form size in IDE during design time

    Hi. I would like to let you see the program but it won't work. This is because
    when I brought the same program to my PC at office, it works fine. The
    form can be dragged and resize during design time. However, when I use it at my home PC, it restrict the form size. When I open a new project with the VB6 using my home PC, it does not have this restriction. I wonder where and which setting did I alter?

    Hold on .. I checked my VB6 using PC at office with the program, the
    Format > Lock Controls icon is disabled .. in grey .. when I checked the same setting (Format>Lock controls) with my PC at home with the same program,
    the Format> Lock Controls are enabled but it is set off. If I select it once, it will be turned on and vice versa (off when I select again). This could be it but then how do I disabled this lock controls. I have already make sure the lock controls are turned off but it seems to be ineffective. Any ideas anyone?
    Last edited by kwng; May 2nd, 2007 at 02:27 PM.

  7. #7
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Unwanted restriction on form size in IDE during design time

    Lock Controls by default is switched off (aka 'disabled')
    On or off, it has no effect on your ability to resize the form.
    The only way it might appear to be effecting that, would be if you had a large container control (frame etc), which was the same size as the form.
    Thus if you clicked anywhere, that container would get the focus, and it would be that, that you were dragging (which would resist resizing bigger and smaller)
    Rob C

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    30

    Re: Unwanted restriction on form size in IDE during design time

    Well, I do have a frame as container but it is thin but wide. I am very sure
    I did not pick the frame during drag or resize. Based on your perception, is
    there anyway I have set something to focus on the frame or container? I
    also tried to change the form width via property table on the right. When
    I change the width value to a bigger value, it changes back to the limit.
    I also noticed that the form layout shown at the right bottom corner with reference to a TV monitor is way bigger than the monitor i.e. the form is
    extended to outside of the monitor screen. However, what I can see from
    the editor screen does not extend that much.

  9. #9
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Unwanted restriction on form size in IDE during design time

    Does your work pc have the same resolution setting ?

    When you are in Properties does it say it is the Form, 'that you are in' ?

    Can you drag the form smaller ?

    Do you have other Forms in that Project ?
    Do they have similar problems ?
    If no others then add one, and try it.
    Rob C

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    30

    Re: Unwanted restriction on form size in IDE during design time

    Yeap. it says it is a form. All the forms in the program cannot be dragged larger. There must be some sort settings.

  11. #11
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Unwanted restriction on form size in IDE during design time

    Make a backup of your projects folder (onto a cd perhaps).
    Rename the original folder by placing X on the end.
    C O P Y your backup, back to your C drive.
    Delete the VBP and VBW files.
    Start a new VB project, and save the Form(with some useless name) and Project to that folder.
    Close VB
    Double click the new Project, and add one or all of your objects into the new project. (you can delete the useless form).
    Save the Project.
    Re-open and see if the forms can be resized.
    Rob C

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