Solved

Scrollbars and MDI Child Forms

Posted on 1998-11-10
8
286 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
ID: 1444121

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


0
 

Author Comment

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


0
 

Author Comment

by:tinybear
ID: 1444123
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
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.

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:tinybear
ID: 1444125
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
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 Cyber@anti-social.com
0
 

Author Comment

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

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 - Compare and highlight cell not the same 3 42
using web browser with BING 40 110
Using an encrypted  value to decrypt and display contents in vb6 9 49
MsgBox 4 45
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

911 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

17 Experts available now in Live!

Get 1:1 Help Now