• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

Resize scrollbar problem

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
tbwork
Asked:
tbwork
  • 2
1 Solution
 
TimCotteeHead of Software ServicesCommented:
Swap it around,    
txtPageTotals.Move 0, 0, ScaleWidth, ScaleHeight

is the correct way around.
0
 
tbworkAuthor Commented:
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
 
TimCotteeHead of Software ServicesCommented:
tbwork:

Was that a hint that I should "answer" if so here it is!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now