Solved

Resize scrollbar problem

Posted on 2000-04-20
3
212 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
[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
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 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…

737 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