Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

scroll bar

freezafreeza Member Posts: 7
hi

i have a mdi form in vb and when i resize it there is no scoll bars
comming in it so all the controls are not visible..
i want to add a scroll bar to it
so that when u resize the form u can use the scoll bar to
scroll down the entire content of the form..

how can i do this or is there any alternate or better way to
display all the controls when a form is restored...



freeza

Comments

  • GideonOmegaGideonOmega Member Posts: 617
    : hi
    :
    : i have a mdi form in vb and when i resize it there is no scoll bars
    : comming in it so all the controls are not visible..
    : i want to add a scroll bar to it
    : so that when u resize the form u can use the scoll bar to
    : scroll down the entire content of the form..
    :
    : how can i do this or is there any alternate or better way to
    : display all the controls when a form is restored...
    :
    :
    :
    : freeza
    :
    :


    In my experience MDI forms are designed to be mearly containers for other forms, therefore the scroll bar property for mdi forms controls wheither or not scroll bars as displayed when a loaded child form has it's edges moved past the boundrys of the Mdi parent form.

    however if you are talking about a child form that is loaded into a mdi then you can set the width and height property of the child form in code for instance:
    [code]
    With frmChildform
    .width = 4000
    .Height = 4000
    .show
    end with
    [/code]
    The above code changes the dimetions of the child form at run time, you would simply change the numbers to those of your child form in design view to display the full form.

    I think that is what you where asking, if not then please specify if you are talking about a mdi child or parent.
    [blue]
    C:Dos
    C:Dos Run
    Run Dos Run
    [/blue]

Sign In or Register to comment.