Solved

Resize scrollbar problem

Posted on 2000-04-20
3
197 Views
Last Modified: 2010-05-02
A while back, I needed a textbox to automatically resize itself as the user resizes the form. This is the code that I used in the Resize event of the form:

txtPageTotals.Move 0, 0, ScaleHeight, ScaleWidth

It works, almost. This textbox can potentially hold hundreds of rows and I need both scrollbars. For some reason, the form opens with the scrollbars partially hidden on the side or underneath the bottom of the textbox while the user is resizing the form. The user has to "play" with the resize quite a bit to get the "perfect" dimensions that will expose both scrollbars.

Any ideas on how to stop this and make the scrollbars accessible at all times?
0
Comment
Question by:tbwork
  • 2
3 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 2734688
Swap it around,    
txtPageTotals.Move 0, 0, ScaleWidth, ScaleHeight

is the correct way around.
0
 

Author Comment

by:tbwork
ID: 2735168
THAT WAS IT!!

Thanks a bunch Tim. Sometimes a simple solution can be evasive. If you "solve" this problem I'll give you the points.
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 2746553
tbwork:

Was that a hint that I should "answer" if so here it is!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 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…

747 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

15 Experts available now in Live!

Get 1:1 Help Now