[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Form Scrolling

Posted on 2003-11-06
5
Medium Priority
?
493 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
  • 3
  • 2
5 Comments
 

Accepted Solution

by:
Filex earned 150 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses
Course of the Month19 days, 10 hours left to enroll

872 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