473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

run out of space to put controls on form

I have a form that has like 20 text boxes that are comments.
When I create the textbox I add it below the previous one; eventually I
run out of space on the form. I am able to resize the form but
eventually I cannot continue to add more text boxes. The form height
size maxes out at 812.

I may not be using the right approach. I want to be able to have a
bunch of text boxes underneath each other (they are comment fields that
are multiline and will take up 4 rows of text not that that matters).
There are other controls next to this textbox (radio buttons and
checkboxes) that is not why I don't create a simple grid.

I guess I don't care what the real form size is, all I care about is to
be able to have a form that is scrollable that will eventually have
more textboxes that will currently fit on the form.

I have been trying both VisualBasic 2005 and VB6.

thanks, David

Jan 8 '07 #1
5 1289
David,

can you add a panel to the form, make it Autoscroll, and add your TextBoxes
to the panel.

Fred

"vbDavidC" <ch*************@yahoo.comwrote in message
news:11**********************@51g2000cwl.googlegro ups.com...
>I have a form that has like 20 text boxes that are comments.
When I create the textbox I add it below the previous one; eventually I
run out of space on the form. I am able to resize the form but
eventually I cannot continue to add more text boxes. The form height
size maxes out at 812.

I may not be using the right approach. I want to be able to have a
bunch of text boxes underneath each other (they are comment fields that
are multiline and will take up 4 rows of text not that that matters).
There are other controls next to this textbox (radio buttons and
checkboxes) that is not why I don't create a simple grid.

I guess I don't care what the real form size is, all I care about is to
be able to have a form that is scrollable that will eventually have
more textboxes that will currently fit on the form.

I have been trying both VisualBasic 2005 and VB6.

thanks, David

Jan 9 '07 #2
Fred,

Thanks, that worked. :)

Fred wrote:
David,

can you add a panel to the form, make it Autoscroll, and add your TextBoxes
to the panel.

Fred

"vbDavidC" <ch*************@yahoo.comwrote in message
news:11**********************@51g2000cwl.googlegro ups.com...
I have a form that has like 20 text boxes that are comments.
When I create the textbox I add it below the previous one; eventually I
run out of space on the form. I am able to resize the form but
eventually I cannot continue to add more text boxes. The form height
size maxes out at 812.

I may not be using the right approach. I want to be able to have a
bunch of text boxes underneath each other (they are comment fields that
are multiline and will take up 4 rows of text not that that matters).
There are other controls next to this textbox (radio buttons and
checkboxes) that is not why I don't create a simple grid.

I guess I don't care what the real form size is, all I care about is to
be able to have a form that is scrollable that will eventually have
more textboxes that will currently fit on the form.

I have been trying both VisualBasic 2005 and VB6.

thanks, David
Jan 9 '07 #3
Fred, I have another question regarding form design, I wonder if I can
give you my email address and I can ask you a couple of other
questions.

The app is for data entry, I am using a paperform as my template. The
paper form is about 6 pages long. What I am thinking is placing each
section (about 6) in its own form and having a separate form for
navigation to switch between forms. I guess as user wants to change
forms, it will appear to go from one form to the other, in VB6 it would
look like like I would unload the current form, and then show the new
form. I guess my navigation buttons, 'next page', 'previous page',
'exit' would be on another form.

vbDavidC wrote:
Fred,

Thanks, that worked. :)

Fred wrote:
David,

can you add a panel to the form, make it Autoscroll, and add your TextBoxes
to the panel.

Fred

"vbDavidC" <ch*************@yahoo.comwrote in message
news:11**********************@51g2000cwl.googlegro ups.com...
>I have a form that has like 20 text boxes that are comments.
When I create the textbox I add it below the previous one; eventually I
run out of space on the form. I am able to resize the form but
eventually I cannot continue to add more text boxes. The form height
size maxes out at 812.
>
I may not be using the right approach. I want to be able to have a
bunch of text boxes underneath each other (they are comment fields that
are multiline and will take up 4 rows of text not that that matters).
There are other controls next to this textbox (radio buttons and
checkboxes) that is not why I don't create a simple grid.
>
I guess I don't care what the real form size is, all I care about is to
be able to have a form that is scrollable that will eventually have
more textboxes that will currently fit on the form.
>
I have been trying both VisualBasic 2005 and VB6.
>
thanks, David
>
Jan 9 '07 #4
Hi,

You might consider a Tab control for this (example:
http://msdn2.microsoft.com/en-us/lib...bcontrol.aspx).

There also are commercial controls (DevExpress for example).

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
Jan 9 '07 #5

why not use panels ... 6 panels - one for each 'page' ... and make the
'current' one visible ... and hide the rest.

this way you are not jumping between forms.

If you get really fancy, you could make the 'paper' form a background image
in the respective panel and place your fields over top of the paper form ...
giving the user the illusion of entering the data on the paper form.
"vbDavidC" <ch*************@yahoo.comwrote in message
news:11**********************@q40g2000cwq.googlegr oups.com...
Fred, I have another question regarding form design, I wonder if I can
give you my email address and I can ask you a couple of other
questions.

The app is for data entry, I am using a paperform as my template. The
paper form is about 6 pages long. What I am thinking is placing each
section (about 6) in its own form and having a separate form for
navigation to switch between forms. I guess as user wants to change
forms, it will appear to go from one form to the other, in VB6 it would
look like like I would unload the current form, and then show the new
form. I guess my navigation buttons, 'next page', 'previous page',
'exit' would be on another form.

vbDavidC wrote:
>Fred,

Thanks, that worked. :)

Fred wrote:
David,

can you add a panel to the form, make it Autoscroll, and add your
TextBoxes
to the panel.

Fred

"vbDavidC" <ch*************@yahoo.comwrote in message
news:11**********************@51g2000cwl.googlegro ups.com...
I have a form that has like 20 text boxes that are comments.
When I create the textbox I add it below the previous one; eventually
I
run out of space on the form. I am able to resize the form but
eventually I cannot continue to add more text boxes. The form height
size maxes out at 812.

I may not be using the right approach. I want to be able to have a
bunch of text boxes underneath each other (they are comment fields
that
are multiline and will take up 4 rows of text not that that matters).
There are other controls next to this textbox (radio buttons and
checkboxes) that is not why I don't create a simple grid.

I guess I don't care what the real form size is, all I care about is
to
be able to have a form that is scrollable that will eventually have
more textboxes that will currently fit on the form.

I have been trying both VisualBasic 2005 and VB6.

thanks, David

Jan 9 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Buz | last post by:
I am having a problem with extra, unwanted space showing up on my web form tables. I've tried hand coding and can get the htm file to display fine. But as soon as I bring the form into Visual...
4
by: David | last post by:
copy and paste the following in a new html file and see it in IE: <form action=""> <button>Button1</button> <br> <button>ButtonButtonButton11</button>
2
by: Stuart Norris | last post by:
Dear Group, I have a question about the result from ‘graphics.MeasureString' when using a mono-spaced font. Firstly I assume that Courier New font is mono-spaced, ie each character takes up the...
2
by: Craig | last post by:
Is it possible to restrict where an mdi form can go within the parent form....for example, what if I wanted the parent form to have a panel with a listbox on the left hand side of the...
21
by: Michael Turner | last post by:
Hi Guys I have several images that will be used over and over again on different forms in the same place, I have decided to create a control to save space/time in development, I have create a...
1
by: Roy | last post by:
Hey All, Kind of a series of anomalies here with one root source, I believe. I have an editable, paging datagrid. 1.When one clicks "edit" textboxes open up on row x, HOWEVER, if one clicks...
5
by: dw | last post by:
hello - first, let me state that i am an Asp.Net rookie. here is the situation: i have a page that looks good in the vs.net designer, but when the page renders there are extra amounts...
4
by: Don Miller | last post by:
When an ASP.NET 2.0 web page is rendered with multiple web controls hidden from view (.visible=false) there is a noticeable gap between a rendered element (like a table) and the next visible...
7
by: raylopez99 | last post by:
I have a logical drawing space much bigger than the viewport (the screen) and I'd like to center the viewport (the screen) to be at the center of the logical drawing space. After following the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.