473,385 Members | 1,331 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,385 software developers and data experts.

VB6 Form Height

Is there any way of increasing the height of a VB form and of using a scroll
bar to access the data outside of the normal window.

My problem is that I need at least 40 rows on a form each row containing
combo boxes and text boxes.There is however a limit to how many rows that
can be fitted onto a form.

If a scrollable form was available there would not be this problem.

Does anyone please have a solution or this.

Thanks in anticipation

Kevin

Jul 17 '05 #1
5 13323
> Is there any way of increasing the height of a VB form and of using a
scroll
bar to access the data outside of the normal window.


No. However, you can create what is called a "scrollable viewport" using
PictureBoxes (one of which serves as your container for controls).

http://support.microsoft.com/default...b;en-us;186429

Rick - MVP

Jul 17 '05 #2
YES of course!

Use:-
A MDI form
And a standard form.
Set the standard form property :- 'Mdi Child' to TRUE
Set the standard form property :- 'AutoRedraw' to TRUE
In order to make the standard form Any Height the forms 'BorderStyle' needs
to be set to any of the 'Fixed' Styles. The resizable styles limit the forms
height!

That should get you started
Regards

Martin Double (MCP)
Email: ca****@btconnect.com
Web Site: http://home.btconnect.com/cadoss

"Kevin Robinson" <k.**********@btinternet.com> wrote in message
news:ct**********@hercules.btinternet.com...
Is there any way of increasing the height of a VB form and of using a scroll bar to access the data outside of the normal window.

My problem is that I need at least 40 rows on a form each row containing
combo boxes and text boxes.There is however a limit to how many rows that
can be fitted onto a form.

If a scrollable form was available there would not be this problem.

Does anyone please have a solution or this.

Thanks in anticipation

Kevin

Jul 17 '05 #3
PS Forgot to mention that you will not need to add scroll bars they come
automatically with the MDI form

Regards

Martin Double (MCP)
Email: ca****@btconnect.com
Web Site: http://home.btconnect.com/cadoss

"Kevin Robinson" <k.**********@btinternet.com> wrote in message
news:ct**********@hercules.btinternet.com...
Is there any way of increasing the height of a VB form and of using a scroll bar to access the data outside of the normal window.

My problem is that I need at least 40 rows on a form each row containing
combo boxes and text boxes.There is however a limit to how many rows that
can be fitted onto a form.

If a scrollable form was available there would not be this problem.

Does anyone please have a solution or this.

Thanks in anticipation

Kevin

Jul 17 '05 #4
no no no !

The scrollbars for a mdi window will only scroll a form that is not
maximized. You can bet, given the OPs description that he'd want to maximize
the child. As such moving to a MDI interface will provide no benefit. In
addition, even if the OP could code to prevent maximizing the child, the
scroll would only work if he also sized his child form large enough to
ensure all "40 line" of controls were visible on the form.

All in all I think either the scrollable viewport solution for normal forms,
or a simulated scrolling form would be better solutions.

http://vbnet.mvps.org/code/forms/scrollform.htm
http://vbnet.mvps.org/code/forms/scrollviewport.htm

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Martin" <ca****@btconnect.com> wrote in message
news:ct**********@sparta.btinternet.com...
: PS Forgot to mention that you will not need to add scroll bars they come
: automatically with the MDI form
:
: Regards
:
: Martin Double (MCP)
:
:
: Email: ca****@btconnect.com
: Web Site: http://home.btconnect.com/cadoss
:
: "Kevin Robinson" <k.**********@btinternet.com> wrote in message
: news:ct**********@hercules.btinternet.com...
: > Is there any way of increasing the height of a VB form and of using a
: scroll
: > bar to access the data outside of the normal window.
: >
: > My problem is that I need at least 40 rows on a form each row containing
: > combo boxes and text boxes.There is however a limit to how many rows
that
: > can be fitted onto a form.
: >
: > If a scrollable form was available there would not be this problem.
: >
: > Does anyone please have a solution or this.
: >
: > Thanks in anticipation
: >
: > Kevin
: >
: >
: >
:
:

Jul 17 '05 #5
Yes Yes Yes

Kevin has used my suggestion and it works for him as it does for Me and
Microsoft!

Regards

Martin Double (MCP)
Email: ca****@btconnect.com
Web Site: http://home.btconnect.com/cadoss

"Randy Birch" <rg************@mvps.org> wrote in message
news:I9********************@rogers.com...
no no no !

The scrollbars for a mdi window will only scroll a form that is not
maximized. You can bet, given the OPs description that he'd want to maximize the child. As such moving to a MDI interface will provide no benefit. In
addition, even if the OP could code to prevent maximizing the child, the
scroll would only work if he also sized his child form large enough to
ensure all "40 line" of controls were visible on the form.

All in all I think either the scrollable viewport solution for normal forms, or a simulated scrolling form would be better solutions.

http://vbnet.mvps.org/code/forms/scrollform.htm
http://vbnet.mvps.org/code/forms/scrollviewport.htm

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Martin" <ca****@btconnect.com> wrote in message
news:ct**********@sparta.btinternet.com...
: PS Forgot to mention that you will not need to add scroll bars they come
: automatically with the MDI form
:
: Regards
:
: Martin Double (MCP)
:
:
: Email: ca****@btconnect.com
: Web Site: http://home.btconnect.com/cadoss
:
: "Kevin Robinson" <k.**********@btinternet.com> wrote in message
: news:ct**********@hercules.btinternet.com...
: > Is there any way of increasing the height of a VB form and of using a
: scroll
: > bar to access the data outside of the normal window.
: >
: > My problem is that I need at least 40 rows on a form each row containing : > combo boxes and text boxes.There is however a limit to how many rows
that
: > can be fitted onto a form.
: >
: > If a scrollable form was available there would not be this problem.
: >
: > Does anyone please have a solution or this.
: >
: > Thanks in anticipation
: >
: > Kevin
: >
: >
: >
:
:

Jul 17 '05 #6

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

Similar topics

4
by: Nomen Nescio | last post by:
can anyone be so kind as to look at http://www.mysolution.ws/HYPOCRITE.php and let me know why it isn't passing the form data to http://www.mysolution.ws/insertHYPOCRITES.php for the most...
5
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
2
by: Jaikumar | last post by:
Hi, 1) I have created one windows application, In the main form ( form1) i have added one usercontrol (usercontrol1), In that user control i am drawing one image. 2) In the UserControl1 i am...
2
by: VB Programmer | last post by:
I only have 1 set of <FORM> tags in my HTML file, but I keep getting this error. Any ideas? *********** A page can have only one server-side Form tag. Description: An unhandled exception...
1
by: Rune Jacobsen | last post by:
Hi all, I have an application with one particular form that lists a number of items in a listview. In addition to the listview, there is a panel on top with some simple controls to go back and...
14
by: Galen Somerville | last post by:
My current screen resolution is set to 1024 x 768. My form size always comes up as 1032 x 748. I have tried the help sample ' Retrieve the working rectangle from the Screen class ' using the...
5
by: timothy.pollard | last post by:
Hi I'm having a bit of bother trying to make a questionnaire do what I want it to. I have put it up on www.web-iq.co.uk/test.htm. Basically the user of the final form (when I've tarted it up)...
1
by: Sithlord999 | last post by:
Hello. I'm working on an email form on Dreamweaver and I'm looking for a PHP code to make it work. The form with some required fields would send the submitted information and two image attachments...
4
by: AAaron123 | last post by:
<body runat="server" id="MainBody"> <form id="form1" runat="server" style="background-color:green; width: 100%; height: 100%"> <br /> Table1" runat="server" Style="background-color:Yellow;...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.