Solved

Frames with scrolling ability

Posted on 2001-07-20
6
318 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
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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Windows 10 start screen issues 9 55
using Access 8 75
How to debug this code 7 64
how to Classify of email (pdf attachments) 7 45
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

856 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