Solved

Scrollbars and MDI Child Forms

Posted on 1998-11-10
8
284 Views
Last Modified: 2010-04-30
Hi,

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

0
Comment
Question by:tinybear
  • 4
  • 3
8 Comments
 

Expert Comment

by:idcvbteam
Comment Utility

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


0
 

Author Comment

by:tinybear
Comment Utility
Can u give me more information re the Pager Control?  Ive not come across it before.


0
 

Author Comment

by:tinybear
Comment Utility
Can u p[rovide me with more info. i.e where to find this control?


0
 
LVL 2

Accepted Solution

by:
cybermoonlight earned 200 total points
Comment Utility
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.

0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:tinybear
Comment Utility
Excellent.  Tried thge Forms 2.0 solution and it works.  I've not used the forms 2.0 designer before now.  Thanks
0
 
LVL 2

Expert Comment

by:cybermoonlight
Comment Utility
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 Cyber@anti-social.com
0
 

Author Comment

by:tinybear
Comment Utility
Thanks,  yeah a sampple of the code may be helpful.  Thanks
0
 
LVL 2

Expert Comment

by:cybermoonlight
Comment Utility
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...
bye
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

772 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

8 Experts available now in Live!

Get 1:1 Help Now