Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

V Scroll

Status
Not open for further replies.

ferozy

Programmer
Feb 25, 2003
20
FJ
Hi,

In my form I have 15 * 3 Text boxes and 15 Check Boxes inside a frame and these boxes are loaded
with data from the Table.
Now how can I add a vScroll so that only 5 text boxes are shown and when you scroll down the rest is shown

can any body please help me.

Thanks.
 
Have you looked into using a grid to display your data? Scroll bars are included. The only draw back may be the check box depending on the grid you use. Thanks and Good Luck!

zemp
 
Another option would be to use that form as aMDI form inside a parent form. That way you can get your scroll bars. Thanks and Good Luck!

zemp
 
If I use a grid then I wont be able to edit the records,or
if this possible, then which grid should I use.
 
If you use the datagrid you can edit records directly. If you use the FlexGrid you will have to code a floating text box to edit the records. Examples of the floating text box can be found in this froum and forum222.

Your easiest solution may be the MDI form, Check the VB help files and search forum222.
Thanks and Good Luck!

zemp
 
Another approach is to place all of the checkboxes in a frame (ChkFrame). Then place the ChkFrame inside of a BorderFrame, with the BorderFrame being the size of the display area in the window. Add a scrollbar to the form, and as the scrollbar is adjusted, adjust the .Top of the ChkFrame accordingly to scroll. The .Top property can quite easily be a negative number. Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top