Solved

Frames with scrolling ability

Posted on 2001-07-20
6
316 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

832 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