scroll in frame

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maarten

    scroll in frame

    hi all

    i have a frame, where i can add controls in at runtime.
    but he frame has an end so (on my project) after adding 13 controls
    thecontrols aren't visible anymore becouse they get placed out of the
    frames edges.

    is there a way to place a scrolbar into the frame?

    kind regards Maarten


  • TecCRC

    #2
    Re: scroll in frame

    "Maarten" <gurkjaan@hotma il.com> wrote in news:416a7763$0 $10406
    $ba620e4c@news. skynet.be:
    [color=blue]
    > hi all
    >
    > i have a frame, where i can add controls in at runtime.
    > but he frame has an end so (on my project) after adding 13 controls
    > thecontrols aren't visible anymore becouse they get placed out of the
    > frames edges.
    >
    > is there a way to place a scrolbar into the frame?
    >
    > kind regards Maarten
    >
    >[/color]

    Private Sub Form_Load()
    Dim aa As Integer

    For i = 0 To Command5.UBound
    aa = aa + Command5(i).Wid th
    Command5(i).Tag = Command5(i).Lef t
    Next
    HScroll1.Max = aa
    End Sub

    Private Sub HScroll1_Scroll ()


    For i = 0 To Command5.UBound
    Command5(i).Lef t = Command5(i).Tag - HScroll1.Value

    Next
    End Sub

    Posted Via Usenet.com Premium Usenet Newsgroup Services
    ----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
    ----------------------------------------------------------
    Best Usenet Service Providers 2025 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

    Comment

    • Randy Birch

      #3
      Re: scroll in frame

      similar principle ... http://vbnet.mvps.org/code/forms/scrollviewport.htm

      --


      Randy Birch
      MS MVP Visual Basic



      "Maarten" <gurkjaan@hotma il.com> wrote in message
      news:416a7763$0 $10406$ba620e4c @news.skynet.be ...
      : hi all
      :
      : i have a frame, where i can add controls in at runtime.
      : but he frame has an end so (on my project) after adding 13 controls
      : thecontrols aren't visible anymore becouse they get placed out of the
      : frames edges.
      :
      : is there a way to place a scrolbar into the frame?
      :
      : kind regards Maarten
      :
      :

      Comment

      • Maarten

        #4
        Re: scroll in frame

        thans for the link it works, but not realy like i want it.
        the code indeed scrols the frame to to the component i have addes at design
        time,
        but it wont work when y add components at runtime.

        doe someone knows how to make a scrolbar that adjust itselve at runtime?

        thanks Maarten


        "Maarten" <gurkjaan@hotma il.com> wrote in message
        news:416a7763$0 $10406$ba620e4c @news.skynet.be ...[color=blue]
        > hi all
        >
        > i have a frame, where i can add controls in at runtime.
        > but he frame has an end so (on my project) after adding 13 controls
        > thecontrols aren't visible anymore becouse they get placed out of the
        > frames edges.
        >
        > is there a way to place a scrolbar into the frame?
        >
        > kind regards Maarten
        >
        >[/color]


        Comment

        • Randy Birch

          #5
          Re: scroll in frame

          Sure it will ... you just have to increase the size (height) of the
          container, and update the scrollbar values to reflect the new height.

          --


          Randy Birch
          MS MVP Visual Basic



          "Maarten" <gurkjaan@hotma il.com> wrote in message
          news:416c4e62$0 $22074$ba620e4c @news.skynet.be ...
          : thans for the link it works, but not realy like i want it.
          : the code indeed scrols the frame to to the component i have addes at
          design
          : time,
          : but it wont work when y add components at runtime.
          :
          : doe someone knows how to make a scrolbar that adjust itselve at runtime?
          :
          : thanks Maarten
          :
          :
          : "Maarten" <gurkjaan@hotma il.com> wrote in message
          : news:416a7763$0 $10406$ba620e4c @news.skynet.be ...
          : > hi all
          : >
          : > i have a frame, where i can add controls in at runtime.
          : > but he frame has an end so (on my project) after adding 13 controls
          : > thecontrols aren't visible anymore becouse they get placed out of the
          : > frames edges.
          : >
          : > is there a way to place a scrolbar into the frame?
          : >
          : > kind regards Maarten
          : >
          : >
          :
          :

          Comment

          • Maarten

            #6
            Re: scroll in frame

            thanks.
            now it works fine

            i've just let the resize comand runs at the add commands command

            "Randy Birch" <rgb_removethis @mvps.org> wrote in message
            news:_LudnQzygr 6V6_HcRVn-qQ@rogers.com.. .[color=blue]
            > Sure it will ... you just have to increase the size (height) of the
            > container, and update the scrollbar values to reflect the new height.
            >
            > --
            >
            >
            > Randy Birch
            > MS MVP Visual Basic
            > http://vbnet.mvps.org/
            >
            >
            > "Maarten" <gurkjaan@hotma il.com> wrote in message
            > news:416c4e62$0 $22074$ba620e4c @news.skynet.be ...
            > : thans for the link it works, but not realy like i want it.
            > : the code indeed scrols the frame to to the component i have addes at
            > design
            > : time,
            > : but it wont work when y add components at runtime.
            > :
            > : doe someone knows how to make a scrolbar that adjust itselve at runtime?
            > :
            > : thanks Maarten
            > :
            > :
            > : "Maarten" <gurkjaan@hotma il.com> wrote in message
            > : news:416a7763$0 $10406$ba620e4c @news.skynet.be ...
            > : > hi all
            > : >
            > : > i have a frame, where i can add controls in at runtime.
            > : > but he frame has an end so (on my project) after adding 13 controls
            > : > thecontrols aren't visible anymore becouse they get placed out of the
            > : > frames edges.
            > : >
            > : > is there a way to place a scrolbar into the frame?
            > : >
            > : > kind regards Maarten
            > : >
            > : >
            > :
            > :
            >[/color]


            Comment

            Working...