Solved

Form Scrolling

Posted on 2003-11-06
5
489 Views
Last Modified: 2010-05-01
I asked a question a while ago...here at :
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20787844.html

and then someone responded to me and sent me here for the code:

http://www.freevbcode.com/ShowCode.Asp?ID=1230 


that worked good and how i wanted it too, but when I scroll, the data inside a Frame scrolls, instead of just staying stationary and scrolling with the frame control. What do i do to fix this
0
Comment
Question by:bladefist
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Accepted Solution

by:
Filex earned 50 total points
ID: 9697085
I downloaded this code and looked at it, make sure in the calculation in the scroll bars etc you put the whole frame and others you want to be moved... The code tells it to move EVERY componant in the form and not just certain ones... IE: "For Each ctl In Me.Controls".

You could try to get around this by specifying the items specifically you wish to move (frames) in the code, or tell it to skip on certain ones and then it wont move them on scroll them. If it were me and I had frames I wanted to move, I would specify each frame to be moved by itself in the scroll bar code.
0
 
LVL 1

Author Comment

by:bladefist
ID: 9697225
I understand how to specify to not move a control, but how do i specify to move a specific control. like how do i make it not move "fraTest"
0
 
LVL 1

Author Comment

by:bladefist
ID: 9697278
Thanks...I think I figured it out. I have frames inside of frames so this is gonna be a pain in the ass.
0
 
LVL 1

Author Comment

by:bladefist
ID: 9697398
If I have Frame1 on form, and then I have Frame2 inside Frame1, How do i Make it so that Frame1 scrolls, but Frame2 holds its place in frame 1?
0
 

Expert Comment

by:Filex
ID: 9700363
Well, You should not need to scroll anything inside a frame, just scroll the outside frames, only the ones that are direct "children" of the main form. You should not need to scroll anything inside the direct "children" frames.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

726 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