Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Resize scrollbar problem

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

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

618 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