Solved

Frames with scrolling ability

Posted on 2001-07-20
6
321 Views
Last Modified: 2012-06-21
Hi all,

Hopefully, I will be able to explain this without a diagram.  

I am querying a db and retrieving a timestamp and remarks.
I need to display the remarks linked to that timestamp and there can be 1 to n of them.
I was told to place the 2 text boxes(the text box for the remarks needs to scroll) in a frame and then to create the frames dynamically.  Of couse, I would need to put all these frames in something that scrolls?  Does anyone have/know of a way to have 1 to n frames in something that scrolls?
I tried to do this with text boxes in frames in a "vselastic" and had no luck.  In addition, any examples of dynamic controls would be great.  I am using "control.add", but I want to see if there are any "cool" ways of doing this.

thanks
knel
0
Comment
Question by:knel1234
[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
6 Comments
 
LVL 5

Expert Comment

by:dredge
ID: 6302851
why don't you just use a datagrid? it's much more simple.
0
 
LVL 3

Author Comment

by:knel1234
ID: 6302891
dredge,

I have a vsflexgrid, but I cannot get the wordwrap to behave properly, nor does it have scrolling capability.
I could be wrong but will a data grid allow scrolling on a cell?  In addition, I need to alternate colours on every other frame.  Im not sure I can do either with a datagrid.

knel
0
 
LVL 38

Accepted Solution

by:
PaulHews earned 125 total points
ID: 6303113
Dynamically Add Controls and Create a Scrollable Form

http://www.thescarms.com/VBasic/DynamCtls.asp
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6304194
Paul, doing you advise to use scrollable form?
0
 
LVL 38

Expert Comment

by:PaulHews
ID: 6304240
It's actually a frame control in the example, but you could use any container like this.
0
 
LVL 3

Author Comment

by:knel1234
ID: 6365275
I ended up using part of your suggestion.  I do have the advantage of vselastics.  I put a vselastic "on right" and "on bottom".  Next, I placed a datagrid on top of the right and bottom vselastics (each grid was 2 rows and 2 columns) I then sized the grids to put a scroll bar in cell 1,1.  Next I put another vselastic with as "as fill".  I put a picture box in that elastic.  I coded for scrolling and resizing and viola...I got what I needed.  If anyone would like any further details then please let me know.

knel
0

Featured Post

Industry Leaders: 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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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
Course of the Month11 days, 13 hours left to enroll

623 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