?
Solved

Resize scrollbar problem

Posted on 2000-04-20
3
Medium Priority
?
222 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 400 total points
ID: 2746553
tbwork:

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

809 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