Doubt in VB - How to add scrollbar inside frames?

Arul Prakash

Arul Prakash

@arul-prakash-YCBAuT Oct 26, 2024
how to add the Scroll bar inside the frames and scrolling the controlls into the frame in Vb

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Arul Prakash

    Arul Prakash

    @arul-prakash-YCBAuT Oct 6, 2012

    its very urgent.......
    any body can help me.......?
  • DEVITA SHARMA

    DEVITA SHARMA

    @devita-sharma-5Qe9dV Oct 6, 2012

    Place the scroll bar on the form, take everything else and place them in a frame. make sure the frame is the max height you need.

    Then you can do something like this,
    Private Sub Form_Load()
    VScroll1.Max = (Frame1.Height - Me.Height) + 500
    VScroll1.SmallChange = 50
    VScroll1.LargeChange = 100
    End Sub
    Private Sub VScroll1_Change()
    Frame1.Top = 0 - VScroll1.Value
    End Sub