Scrollbars and MDI Child Forms

Posted on 1998-11-10
Last Modified: 2010-04-30

I want to create an MDI app,  with child windows. The child windows will display user input forms with standsrsd Vb controls.  However the Fom size may exceed the window size, so I will need to scroll around the form.

Is there a way to ensure the MDI child window has scrollbars

Question by:tinybear
  • 4
  • 3

Expert Comment

ID: 1444121

Hi, I would use the pager control from Microsoft.
It displays little arrows when something exceeds the viewable


Author Comment

ID: 1444122
Can u give me more information re the Pager Control?  Ive not come across it before.


Author Comment

ID: 1444123
Can u p[rovide me with more info. i.e where to find this control?

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.


Accepted Solution

cybermoonlight earned 200 total points
ID: 1444124
either put two picture boxes inside the form, one of them being inside the other, then attach scroolbars and the necessary code,
or you could use the forms2 designer that comes with office 97 or IE 4, it has scrollbars already!!!
hope it helps.


Author Comment

ID: 1444125
Excellent.  Tried thge Forms 2.0 solution and it works.  I've not used the forms 2.0 designer before now.  Thanks

Expert Comment

ID: 1444126
if you need anymore help, ie you need the code, i will post it here on request..I would email it to you but our intranet service forbids the use of email....
by the way, Any questions you have, i will answer for free just send an email to me and i will try to get a hold of you...
my email is

Author Comment

ID: 1444127
Thanks,  yeah a sampple of the code may be helpful.  Thanks

Expert Comment

ID: 1444128
sample code coming up!!
picScroller.BorderStyle = 0
    picContainer.BorderStyle = 0

    m_strCurrentProcedure = "VScroll_Change"
    picScroller.Height = frmMenu.FormHeights - 1000
    picScroller.Width = Me.Width - VScroll.Width - 100
    picContainer.Height = 5600 'This controls the size of the container
    picContainer.Width = Me.Width - 60
    VScroll.Top = 0
    VScroll.Left = picScroller.Width + 50
    VScroll.Height = picScroller.Height
    VScroll.Max = picContainer.Height - picScroller.Height
    VScroll.Visible = picScroller.Height < picContainer.Height
End Sub

Private Sub VScroll_Change()
' **************************************************
' * Make the form appear to scroll relative to the
' * scrollbar.
' **************************************************

    m_strCurrentProcedure = "VScroll_Change"
    picContainer.Top = -VScroll.Value
End Sub

picContainer & picScroller are the 2 picture boxes!!!
hope it helps...

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel object stays open 19 73
MS Access - Capture pressed key onclick 4 32
Microsoft Access combo box help 2 44
Prevent checkbox click event occur while editing it in vb6 8 41
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now